The software bridge never forwards according to an FDB entry with a multicast MAC. A multicast entry created by "bridge fdb add" is therefore inert in the software data path, but its switchdev notification still reaches .port_fdb_add(). Ignore multicast addresses in .port_fdb_add() and .port_fdb_del() so multicast entries are not touched from FDB side. Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x") Signed-off-by: David Yang --- drivers/net/dsa/motorcomm/chip.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/dsa/motorcomm/chip.c b/drivers/net/dsa/motorcomm/chip.c index b12bf32f8896..eddec2f26586 100644 --- a/drivers/net/dsa/motorcomm/chip.c +++ b/drivers/net/dsa/motorcomm/chip.c @@ -862,6 +862,9 @@ yt921x_dsa_port_fdb_del(struct dsa_switch *ds, int port, struct yt921x_priv *priv = dsa_to_yt921x_priv(ds); int res; + if (is_multicast_ether_addr(addr)) + return 0; + mutex_lock(&priv->reg_lock); res = yt921x_fdb_leave(priv, addr, vid, BIT(port)); mutex_unlock(&priv->reg_lock); @@ -876,6 +879,12 @@ yt921x_dsa_port_fdb_add(struct dsa_switch *ds, int port, struct yt921x_priv *priv = dsa_to_yt921x_priv(ds); int res; + /* The software bridge never forwards according to an FDB entry with a + * multicast MAC, do not touch it from the FDB path + */ + if (is_multicast_ether_addr(addr)) + return 0; + mutex_lock(&priv->reg_lock); res = yt921x_fdb_join(priv, addr, vid, BIT(port)); mutex_unlock(&priv->reg_lock); -- 2.53.0