]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: rzn1-a5psw: disable learning for standalone ports
authorClément Léger <clement.leger@bootlin.com>
Fri, 12 May 2023 07:27:12 +0000 (09:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:44 +0000 (17:32 +0100)
commitc8fdcc05c5a4d6a2632c0723cf0397bc268f16d5
tree3583d4eaf062d0a098b6648349b529040ab04d92
parent0c19d7bdb551ef06f38b521d14092387e60f6b56
net: dsa: rzn1-a5psw: disable learning for standalone ports

[ Upstream commit ec52b69c046a6219011af780aca155a96719637b ]

When ports are in standalone mode, they should have learning disabled to
avoid adding new entries in the MAC lookup table which might be used by
other bridge ports to forward packets. While adding that, also make sure
learning is enabled for CPU port.

Fixes: e9fc4f921b1b ("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>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/rzn1_a5psw.c