]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: mst: Add helper to map an MSTI to a VID set
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 16 Mar 2022 15:08:49 +0000 (16:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Mar 2022 23:49:58 +0000 (16:49 -0700)
commit5f28a4d303b201aa924388be1bf37ea7a5310c41
tree4e9f098f59d678bff0828c7db417d67e84cc7d7a
parent2a73fa1a1d6a649246b617e424d6070907733377
net: bridge: mst: Add helper to map an MSTI to a VID set

br_mst_get_info answers the question: "On this bridge, which VIDs are
mapped to the given MSTI?"

This is useful in switchdev drivers, which might have to fan-out
operations, relating to an MSTI, per VLAN.

An example: When a port's MST state changes from forwarding to
blocking, a driver may choose to flush the dynamic FDB entries on that
port to get faster reconvergence of the network, but this should only
be done in the VLANs that are managed by the MSTI in question.

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