net: bridge: vlan: add basic option setting support
This patch adds support for option modification of single vlans and ranges. It allows to only modify options, i.e. skip create/delete by using the BRIDGE_VLAN_INFO_ONLY_OPTS flag. When working with a range option changes we try to pack the notifications as much as possible. v2: do full port (all vlans) notification only when creating/deleting vlans for compatibility, rework the range detection when changing options, add more verbose extack errors and check if a vlan should be used (br_vlan_should_use checks) Signed-off-by:Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/uapi/linux/if_bridge.h 1 addition, 0 deletionsinclude/uapi/linux/if_bridge.h
- net/bridge/br_private.h 8 additions, 0 deletionsnet/bridge/br_private.h
- net/bridge/br_vlan.c 34 additions, 7 deletionsnet/bridge/br_vlan.c
- net/bridge/br_vlan_options.c 87 additions, 0 deletionsnet/bridge/br_vlan_options.c
Loading
Please register or sign in to comment