vlan: Change vlan_dev_set_vlan_flag() to handle multiple flags at once
Change vlan_dev_set_vlan_flag() to handle multiple flags at once and rename to vlan_dev_change_flags(). This allows to to use it from the netlink interface, which in turn allows to handle necessary adjustments when changing flags centrally. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
eca9ebac65
commit
b3ce0325f2
@@ -591,9 +591,9 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg)
|
||||
err = -EPERM;
|
||||
if (!capable(CAP_NET_ADMIN))
|
||||
break;
|
||||
err = vlan_dev_set_vlan_flag(dev,
|
||||
args.u.flag,
|
||||
args.vlan_qos);
|
||||
err = vlan_dev_change_flags(dev,
|
||||
args.vlan_qos ? args.u.flag : 0,
|
||||
args.u.flag);
|
||||
break;
|
||||
|
||||
case SET_VLAN_NAME_TYPE_CMD:
|
||||
|
Reference in New Issue
Block a user