]> git.karo-electronics.de Git - linux-beck.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)
commitbdced7ef7838c1c4aebe9f295e44b7f0dcae2109
tree085509e3c66585999c7b2fd10612b34bf8eaafb3
parentdd2e8bf586a69b824e50d50a5bbc16ed38f50986
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