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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 May 2023 16:06:38 +0000 (17:06 +0100)
commitec52b69c046a6219011af780aca155a96719637b
tree6d84ab66e8db9b7c8a00f40a7598e9fe34e47edf
parentebe9bc50952757b4b25eaf514da7c464196c9606
net: dsa: rzn1-a5psw: disable learning for standalone ports

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: 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>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rzn1_a5psw.c