]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Support setting learning on port
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 22 Feb 2021 22:30:10 +0000 (14:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Feb 2021 20:23:00 +0000 (12:23 -0800)
commit87b71469ff3d5e1032010f647483dfb55206ab5f
treee10f622aed7f81f9ef22168961b5d4b92dc4df0e
parent7a03c374b97cb4b37d98e55b2aded8871c797080
net: dsa: b53: Support setting learning on port

Add support for being able to set the learning attribute on port, and
make sure that the standalone ports start up with learning disabled.

We can remove the code in bcm_sf2 that configured the ports learning
attribute because we want the standalone ports to have learning disabled
by default and port 7 cannot be bridged, so its learning attribute will
not change past its initial configuration.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_regs.h
drivers/net/dsa/bcm_sf2.c