WSL2-Linux-Kernel/net/8021q
Patrick McHardy fffe470a80 [VLAN]: Fix SET_VLAN_INGRESS_PRIORITY_CMD ioctl
Based on report and patch by Doug Kehn <rdkehn@yahoo.com>:

vconfig returns the following error when attempting to execute the
set_ingress_map command:

vconfig: socket or ioctl error for set_ingress_map: Operation not permitted

In vlan.c, vlan_ioctl_handler for SET_VLAN_INGRESS_PRIORITY_CMD
sets err = -EPERM and calls vlan_dev_set_ingress_priority.
vlan_dev_set_ingress_priority is a void function so err remains
at -EPERM and results in the vconfig error (even though the ingress
map was set).

Fix by setting err = 0 after the vlan_dev_set_ingress_priority call.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-11-07 04:15:02 -08:00
..
Kconfig [NET]: move config options out to individual protocols 2005-07-11 21:13:56 -07:00
Makefile [VLAN]: Use rtnl_link API 2007-07-10 22:15:03 -07:00
vlan.c [VLAN]: Fix SET_VLAN_INGRESS_PRIORITY_CMD ioctl 2007-11-07 04:15:02 -08:00
vlan.h [NET]: Move hardware header operations out of netdevice. 2007-10-10 16:52:52 -07:00
vlan_dev.c [NET]: Move hardware header operations out of netdevice. 2007-10-10 16:52:52 -07:00
vlan_netlink.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
vlanproc.c [NET]: Make the device list and device lookups per namespace. 2007-10-10 16:49:10 -07:00
vlanproc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00