]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: fix broken IP multicast flooding
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 15 Apr 2022 15:19:50 +0000 (18:19 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Apr 2022 08:33:33 +0000 (10:33 +0200)
commit966e57f8125e8138a425085c1b28be2900ff3bf1
treedaa07c5a3bb5e40cf97ae47d494d7e9a6d367c7d
parenta1bfc093a00c6e5f111483013f8d2519c7d66615
net: mscc: ocelot: fix broken IP multicast flooding

When the user runs:
bridge link set dev $br_port mcast_flood on

this command should affect not only L2 multicast, but also IPv4 and IPv6
multicast.

In the Ocelot switch, unknown multicast gets flooded according to
different PGIDs according to its type, and PGID_MC only handles L2
multicast. Therefore, by leaving PGID_MCIPV4 and PGID_MCIPV6 at their
default value of 0, unknown IP multicast traffic is never flooded.

Fixes: 966e93cb622d ("net: mscc: ocelot: offload bridge port flags to device")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220415151950.219660-1-vladimir.oltean@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mscc/ocelot.c