diff options
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index c8a18a6203c8..40797fbdca9f 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c | |||
@@ -666,8 +666,6 @@ static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
666 | 666 | ||
667 | spin_unlock_irqrestore(&bp->lock, flags); | 667 | spin_unlock_irqrestore(&bp->lock, flags); |
668 | 668 | ||
669 | dev->trans_start = jiffies; | ||
670 | |||
671 | return NETDEV_TX_OK; | 669 | return NETDEV_TX_OK; |
672 | } | 670 | } |
673 | 671 | ||
@@ -793,6 +791,7 @@ static void macb_init_hw(struct macb *bp) | |||
793 | config = macb_readl(bp, NCFGR) & MACB_BF(CLK, -1L); | 791 | config = macb_readl(bp, NCFGR) & MACB_BF(CLK, -1L); |
794 | config |= MACB_BIT(PAE); /* PAuse Enable */ | 792 | config |= MACB_BIT(PAE); /* PAuse Enable */ |
795 | config |= MACB_BIT(DRFCS); /* Discard Rx FCS */ | 793 | config |= MACB_BIT(DRFCS); /* Discard Rx FCS */ |
794 | config |= MACB_BIT(BIG); /* Receive oversized frames */ | ||
796 | if (bp->dev->flags & IFF_PROMISC) | 795 | if (bp->dev->flags & IFF_PROMISC) |
797 | config |= MACB_BIT(CAF); /* Copy All Frames */ | 796 | config |= MACB_BIT(CAF); /* Copy All Frames */ |
798 | if (!(bp->dev->flags & IFF_BROADCAST)) | 797 | if (!(bp->dev->flags & IFF_BROADCAST)) |
@@ -882,15 +881,15 @@ static int hash_get_index(__u8 *addr) | |||
882 | */ | 881 | */ |
883 | static void macb_sethashtable(struct net_device *dev) | 882 | static void macb_sethashtable(struct net_device *dev) |
884 | { | 883 | { |
885 | struct dev_mc_list *curr; | 884 | struct netdev_hw_addr *ha; |
886 | unsigned long mc_filter[2]; | 885 | unsigned long mc_filter[2]; |
887 | unsigned int bitnr; | 886 | unsigned int bitnr; |
888 | struct macb *bp = netdev_priv(dev); | 887 | struct macb *bp = netdev_priv(dev); |
889 | 888 | ||
890 | mc_filter[0] = mc_filter[1] = 0; | 889 | mc_filter[0] = mc_filter[1] = 0; |
891 | 890 | ||
892 | netdev_for_each_mc_addr(curr, dev) { | 891 | netdev_for_each_mc_addr(ha, dev) { |
893 | bitnr = hash_get_index(curr->dmi_addr); | 892 | bitnr = hash_get_index(ha->addr); |
894 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); | 893 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); |
895 | } | 894 | } |
896 | 895 | ||