ethernet:vmac: support multicast
authorroger <cz@rock-chips.com>
Tue, 20 Jan 2015 07:51:51 +0000 (15:51 +0800)
committerroger <cz@rock-chips.com>
Tue, 20 Jan 2015 07:51:51 +0000 (15:51 +0800)
drivers/net/ethernet/rockchip/vmac/rk29_vmac.c

index 99b7af0dfae83d3772753805273ed926fe3f8fe2..d420a0b324e3c7b57f8a004f9376aeac4524e44a 100755 (executable)
@@ -1393,7 +1393,7 @@ void vmac_tx_timeout(struct net_device *dev)
 \r
        spin_unlock_irqrestore(&ap->lock, flags);\r
 }\r
-#if 0\r
+\r
 static void create_multicast_filter(struct net_device *dev,\r
        unsigned long *bitmask)\r
 {\r
@@ -1500,7 +1500,6 @@ static void vmac_set_multicast_list(struct net_device *dev)
        spin_unlock_irqrestore(&ap->lock, flags);\r
 #endif\r
 }\r
-#endif\r
 \r
 static struct ethtool_ops vmac_ethtool_ops = {\r
        .get_settings           = vmacether_get_settings,\r
@@ -1517,7 +1516,7 @@ static const struct net_device_ops vmac_netdev_ops = {
        .ndo_do_ioctl           = vmac_ioctl,\r
        .ndo_set_mac_address    = eth_mac_addr,\r
        .ndo_tx_timeout         = vmac_tx_timeout,\r
-       //.ndo_set_multicast_list = vmac_set_multicast_list,\r
+       .ndo_set_rx_mode        = vmac_set_multicast_list,\r
        .ndo_validate_addr      = eth_validate_addr,\r
        .ndo_change_mtu         = eth_change_mtu,\r
 };\r