]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Validate hardware support for MST
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 16 Mar 2022 15:08:52 +0000 (16:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Mar 2022 23:49:58 +0000 (16:49 -0700)
commita3f6b567508ccd30625eda961cc21646eb97f01c
tree32bae9abb5c33461fcf83b6a025533c1ef8f4ec7
parent3edf9af8986ba6e626a0fd7a48859524fbc8940c
net: dsa: Validate hardware support for MST

When joining a bridge where MST is enabled, we validate that the
proper offloading support is in place, otherwise we fallback to
software bridging.

When then mode is changed on a bridge in which we are members, we
refuse the change if offloading is not supported.

At the moment we only check for configurable learning, but this will
be further restricted as we support more MST related switchdev events.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c