From e9ff77059876111432481d1eba011183c06ed0b3 Mon Sep 17 00:00:00 2001 From: roger Date: Tue, 20 Jan 2015 15:51:51 +0800 Subject: [PATCH] ethernet:vmac: support multicast --- drivers/net/ethernet/rockchip/vmac/rk29_vmac.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/rockchip/vmac/rk29_vmac.c b/drivers/net/ethernet/rockchip/vmac/rk29_vmac.c index 99b7af0dfae8..d420a0b324e3 100755 --- a/drivers/net/ethernet/rockchip/vmac/rk29_vmac.c +++ b/drivers/net/ethernet/rockchip/vmac/rk29_vmac.c @@ -1393,7 +1393,7 @@ void vmac_tx_timeout(struct net_device *dev) spin_unlock_irqrestore(&ap->lock, flags); } -#if 0 + static void create_multicast_filter(struct net_device *dev, unsigned long *bitmask) { @@ -1500,7 +1500,6 @@ static void vmac_set_multicast_list(struct net_device *dev) spin_unlock_irqrestore(&ap->lock, flags); #endif } -#endif static struct ethtool_ops vmac_ethtool_ops = { .get_settings = vmacether_get_settings, @@ -1517,7 +1516,7 @@ static const struct net_device_ops vmac_netdev_ops = { .ndo_do_ioctl = vmac_ioctl, .ndo_set_mac_address = eth_mac_addr, .ndo_tx_timeout = vmac_tx_timeout, - //.ndo_set_multicast_list = vmac_set_multicast_list, + .ndo_set_rx_mode = vmac_set_multicast_list, .ndo_validate_addr = eth_validate_addr, .ndo_change_mtu = eth_change_mtu, }; -- 2.34.1