]> 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)
commit0218dcb3b347a98661d6a7bca75a850c4a2ea859
tree085509e3c66585999c7b2fd10612b34bf8eaafb3
parentac12914f11ab8913d6f89a5653e44053dea16297
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