]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: dsa: switch: Don't add CPU port to an mdb by default
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Nov 2017 22:11:02 +0000 (23:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Nov 2017 04:41:40 +0000 (13:41 +0900)
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>
net/dsa/switch.c

index e6c06aa349a6fd1930a6c343d4d643cccfa8cb92..1155e43c157f9a7930f147657f42897e2068b4ca 100644 (file)
@@ -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)) {