bridge: new function to pack vlans into ranges during gets
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 10 Jan 2015 15:31:14 +0000 (07:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:47:05 +0000 (16:47 -0500)
commit36cd0ffbab8a65f44ae13fb200bfb5a8f9ea68de
tree21c9371b647f80c8d632f721b6b9e4f721240c98
parent35a27cee321e7c4e7cba3550b2f48c2ca44d8a72
bridge: new function to pack vlans into ranges during gets

This patch adds new function to pack vlans into ranges
whereever applicable using the flags BRIDGE_VLAN_INFO_RANGE_BEGIN
and BRIDGE VLAN_INFO_RANGE_END

Old vlan packing code is moved to a new function and continues to be
called when filter_mask is RTEXT_FILTER_BRVLAN.

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