Skip to content

Commit ae45102

Browse files
lunndavem330
authored andcommitted
net: dsa: switch: Don't add CPU port to an mdb by default
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>
1 parent bb9f603 commit ae45102

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/dsa/switch.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
121121
if (ds->index == info->sw_index)
122122
set_bit(info->port, group);
123123
for (port = 0; port < ds->num_ports; port++)
124-
if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port))
124+
if (dsa_is_dsa_port(ds, port))
125125
set_bit(port, group);
126126

127127
if (switchdev_trans_ph_prepare(trans)) {

0 commit comments

Comments
 (0)