Skip to contentSkip to conversation

bridge: support for vlan range in setlink/dellink

PATCH In review [email protected] 2 participants 2 messages Jan 10, 2015 – Jan 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover bridge: support for vlan range in setlink/dellink

From: Roopa Prabhu <[email protected]>

This series adds new flags in IFLA_BRIDGE_VLAN_INFO to indicate vlan range.

Will post corresponding iproute2 patches if these get accepted.

v1-> v2
- changed patches to use a nested list attribute IFLA_BRIDGE_VLAN_INFO_LIST as suggested by scott feldman
- dropped notification changes from the series. Will post them separately after this range message is accepted.

v2 -> v3
- incorporated some review feedback
- include patches to fill vlan ranges during getlink
- Dropped IFLA_BRIDGE_VLAN_INFO_LIST. I think it may get confusing to userspace if we introduce yet another way to send lists. With getlink already sending nested IFLA_BRIDGE_VLAN_INFO in IFLA_AF_SPEC, It seems better to use the existing format for lists and just use the flags from v2 to mark vlan ranges

Roopa Prabhu (4):
bridge: new flags to represent vlan info ranges
bridge: add support to parse multiple vlan info attributes in
IFLA_AF_SPEC
rtnetlink: new filter RTEXT_FILTER_BRVLAN_COMPRESSED
bridge: new function to pack vlans into ranges during gets

 include/uapi/linux/if_bridge.h |    2 +
 include/uapi/linux/rtnetlink.h |    1 +
 net/bridge/br_netlink.c        |  243 +++++++++++++++++++++++++++++++---------
 3 files changed, 195 insertions(+), 51 deletions(-)
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw

From: [email protected]
Date: Sat, 10 Jan 2015 07:31:11 -0800

Quoted 23 lines

From: Roopa Prabhu <[email protected]>

This series adds new flags in IFLA_BRIDGE_VLAN_INFO to indicate vlan range.

Will post corresponding iproute2 patches if these get accepted.

v1-> v2
- changed patches to use a nested list attribute IFLA_BRIDGE_VLAN_INFO_LIST as suggested by scott feldman
- dropped notification changes from the series. Will post them separately after this range message is accepted.

v2 -> v3
- incorporated some review feedback
- include patches to fill vlan ranges during getlink
- Dropped IFLA_BRIDGE_VLAN_INFO_LIST. I think it may get confusing to userspace if we introduce yet another way to send lists. With getlink already sending nested IFLA_BRIDGE_VLAN_INFO in IFLA_AF_SPEC, It seems better to use the existing format for lists and just use the flags from v2 to mark vlan ranges

Quoted 2 lines

This looks fine to me, series applied, thanks.