diff options
author | Alexis Lothoré | 2023-05-12 09:27:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-05-24 17:32:44 +0100 |
commit | 7ceeb5608d16892e08ec1a7c97c5c96d7d804594 (patch) | |
tree | 805ddc9dc9b211c9fe736c5e1dedf6baa584b677 /security | |
parent | 374c9cf3ad60bf64409b9ddf281041533f38a6a2 (diff) |
net: dsa: rzn1-a5psw: fix STP states handling
[ Upstream commit ebe9bc50952757b4b25eaf514da7c464196c9606 ]
stp_set_state() should actually allow receiving BPDU while in LEARNING
mode which is not the case. Additionally, the BLOCKEN bit does not
actually forbid sending forwarded frames from that port. To fix this, add
a5psw_port_tx_enable() function which allows to disable TX. However, while
its name suggest that TX is totally disabled, it is not and can still
allow to send BPDUs even if disabled. This can be done by using forced
forwarding with the switch tagging mechanism but keeping "filtering"
disabled (which is already the case in the rzn1-a5sw tag driver). With
these fixes, STP support is now functional.
Fixes: 888cdb892b61 ("net: dsa: rzn1-a5psw: add Renesas RZ/N1 advanced 5 port switch driver")
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions