]> 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)
commit1082bb60705ffc75b63531488400d0ef9d9862c0
tree4e9f098f59d678bff0828c7db417d67e84cc7d7a
parent35dbd53d7c2e250fe43c42193b68a21c242ea64d
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