]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Flood all traffic classes on standalone ports
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 18 Mar 2021 19:25:38 +0000 (20:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 23:24:06 +0000 (16:24 -0700)
commit1ef0e129a1ca9209586af2d5fe44a27726bb80f1
tree9f3bf0acd185eb3a780f484bbb54ee4b09eccf0e
parenta4aaba216cb1120f0bf9ede6ea35cf51edd9b1c1
net: dsa: mv88e6xxx: Flood all traffic classes on standalone ports

In accordance with the comment in dsa_port_bridge_leave, standalone
ports shall be configured to flood all types of traffic. This change
aligns the mv88e6xxx driver with that policy.

Previously a standalone port would initially not egress any unknown
traffic, but after joining and then leaving a bridge, it would.

This does not matter that much since we only ever send FROM_CPUs on
standalone ports, but it seems prudent to make sure that the initial
values match those that are applied after a bridging/unbridging cycle.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c