]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: support for multiple vlans and vlan ranges in setlink and dellink requests
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 10 Jan 2015 15:31:12 +0000 (07:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:47:04 +0000 (16:47 -0500)
commit57540eed2da2c75d618a7677091cff114e5ce16a
tree085509e3c66585999c7b2fd10612b34bf8eaafb3
parentf947b487fc2623565a4b1635e7e616984302f4af
bridge: support for multiple vlans and vlan ranges in setlink and dellink requests

This patch changes bridge IFLA_AF_SPEC netlink attribute parser to
look for more than one IFLA_BRIDGE_VLAN_INFO attribute. This allows
userspace to pack more than one vlan in the setlink msg.

The dumps were already sending more than one vlan info in the getlink msg.

This patch also adds bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_BEGIN and
BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

This patch also deletes unused ifla_br_policy.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_bridge.h
net/bridge/br_netlink.c