OSDN Git Service

net: bridge: mst: Allow changing a VLAN's MSTI
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 16 Mar 2022 15:08:44 +0000 (16:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Mar 2022 23:49:57 +0000 (16:49 -0700)
commit8c678d60562f3e5f6d0a5f5465e27930ffedb8ca
tree0df89da76e2333a03c0b7ffcabd27e992d671bae
parentec7328b59176227216c461601c6bd0e922232a9b
net: bridge: mst: Allow changing a VLAN's MSTI

Allow a VLAN to move out of the CST (MSTI 0), to an independent tree.

The user manages the VID to MSTI mappings via a global VLAN
setting. The proposed iproute2 interface would be:

    bridge vlan global set dev br0 vid <VID> msti <MSTI>

Changing the state in non-zero MSTIs is still not supported, but will
be addressed in upcoming changes.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/if_bridge.h
net/bridge/br_mst.c
net/bridge/br_private.h
net/bridge/br_vlan_options.c