Skip to content

Commit

Permalink
net: dsa: switch: Don't add CPU port to an mdb by default
Browse files Browse the repository at this point in the history
Now that the host indicates when a multicast group should be forwarded
from the switch to the host, don't do it by default.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
lunn authored and davem330 committed Nov 10, 2017
1 parent bb9f603 commit ae45102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
if (ds->index == info->sw_index)
set_bit(info->port, group);
for (port = 0; port < ds->num_ports; port++)
if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port))
if (dsa_is_dsa_port(ds, port))
set_bit(port, group);

if (switchdev_trans_ph_prepare(trans)) {
Expand Down

0 comments on commit ae45102

Please sign in to comment.