diff options
Diffstat (limited to 'drivers/net/greth.c')
-rw-r--r-- | drivers/net/greth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c index 3a90430de918..fd491e409488 100644 --- a/drivers/net/greth.c +++ b/drivers/net/greth.c | |||
@@ -895,7 +895,6 @@ static int greth_rx_gbit(struct net_device *dev, int limit) | |||
895 | else | 895 | else |
896 | skb->ip_summed = CHECKSUM_NONE; | 896 | skb->ip_summed = CHECKSUM_NONE; |
897 | 897 | ||
898 | skb->dev = dev; | ||
899 | skb->protocol = eth_type_trans(skb, dev); | 898 | skb->protocol = eth_type_trans(skb, dev); |
900 | dev->stats.rx_packets++; | 899 | dev->stats.rx_packets++; |
901 | netif_receive_skb(skb); | 900 | netif_receive_skb(skb); |
@@ -990,7 +989,7 @@ static u32 greth_hash_get_index(__u8 *addr) | |||
990 | 989 | ||
991 | static void greth_set_hash_filter(struct net_device *dev) | 990 | static void greth_set_hash_filter(struct net_device *dev) |
992 | { | 991 | { |
993 | struct dev_mc_list *curr; | 992 | struct netdev_hw_addr *ha; |
994 | struct greth_private *greth = netdev_priv(dev); | 993 | struct greth_private *greth = netdev_priv(dev); |
995 | struct greth_regs *regs = (struct greth_regs *) greth->regs; | 994 | struct greth_regs *regs = (struct greth_regs *) greth->regs; |
996 | u32 mc_filter[2]; | 995 | u32 mc_filter[2]; |
@@ -998,8 +997,8 @@ static void greth_set_hash_filter(struct net_device *dev) | |||
998 | 997 | ||
999 | mc_filter[0] = mc_filter[1] = 0; | 998 | mc_filter[0] = mc_filter[1] = 0; |
1000 | 999 | ||
1001 | netdev_for_each_mc_addr(curr, dev) { | 1000 | netdev_for_each_mc_addr(ha, dev) { |
1002 | bitnr = greth_hash_get_index(curr->dmi_addr); | 1001 | bitnr = greth_hash_get_index(ha->addr); |
1003 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); | 1002 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); |
1004 | } | 1003 | } |
1005 | 1004 | ||