]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: systemport: do not clear IFF_MULTICAST flag
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 26 Jun 2014 17:06:44 +0000 (10:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jul 2014 00:10:16 +0000 (17:10 -0700)
The SYSTEMPORT Ethernet MAC supports multicast just fine, it just lacks
any sort of Unicast/Broadcast/Multicasting filtering at the Ethernet MAC
level since that is handled by the front end Ethernet switch, but that
is properly handled by bcm_sysport_set_rx_mode().

Some user-space applications might be relying on the presence of this
flag to prevent using multicast sockets, this also prevents that
interface from joining the IPv6 all-router mcast group.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c

index 141160ef249ae83e9d1fe8672dca3926ea9b7172..f6bccd847ee6bdd4c03d0a47731f48758856f54c 100644 (file)
@@ -1589,12 +1589,6 @@ static int bcm_sysport_probe(struct platform_device *pdev)
        BUILD_BUG_ON(sizeof(struct bcm_tsb) != 8);
        dev->needed_headroom += sizeof(struct bcm_tsb);
 
-       /* We are interfaced to a switch which handles the multicast
-        * filtering for us, so we do not support programming any
-        * multicast hash table in this Ethernet MAC.
-        */
-       dev->flags &= ~IFF_MULTICAST;
-
        /* libphy will adjust the link state accordingly */
        netif_carrier_off(dev);