diff options
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 3d4406b16658..cd63b97f3c68 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -64,6 +64,7 @@ | |||
64 | #include <linux/dma-mapping.h> | 64 | #include <linux/dma-mapping.h> |
65 | #include <linux/delay.h> | 65 | #include <linux/delay.h> |
66 | #include <linux/ethtool.h> | 66 | #include <linux/ethtool.h> |
67 | #include <linux/gfp.h> | ||
67 | #include <linux/mii.h> | 68 | #include <linux/mii.h> |
68 | #include <linux/if_vlan.h> | 69 | #include <linux/if_vlan.h> |
69 | #include <linux/crc32.h> | 70 | #include <linux/crc32.h> |
@@ -881,7 +882,6 @@ static netdev_tx_t cp_start_xmit (struct sk_buff *skb, | |||
881 | spin_unlock_irqrestore(&cp->lock, intr_flags); | 882 | spin_unlock_irqrestore(&cp->lock, intr_flags); |
882 | 883 | ||
883 | cpw8(TxPoll, NormalTxPoll); | 884 | cpw8(TxPoll, NormalTxPoll); |
884 | dev->trans_start = jiffies; | ||
885 | 885 | ||
886 | return NETDEV_TX_OK; | 886 | return NETDEV_TX_OK; |
887 | } | 887 | } |
@@ -909,11 +909,11 @@ static void __cp_set_rx_mode (struct net_device *dev) | |||
909 | rx_mode = AcceptBroadcast | AcceptMulticast | AcceptMyPhys; | 909 | rx_mode = AcceptBroadcast | AcceptMulticast | AcceptMyPhys; |
910 | mc_filter[1] = mc_filter[0] = 0xffffffff; | 910 | mc_filter[1] = mc_filter[0] = 0xffffffff; |
911 | } else { | 911 | } else { |
912 | struct dev_mc_list *mclist; | 912 | struct netdev_hw_addr *ha; |
913 | rx_mode = AcceptBroadcast | AcceptMyPhys; | 913 | rx_mode = AcceptBroadcast | AcceptMyPhys; |
914 | mc_filter[1] = mc_filter[0] = 0; | 914 | mc_filter[1] = mc_filter[0] = 0; |
915 | netdev_for_each_mc_addr(mclist, dev) { | 915 | netdev_for_each_mc_addr(ha, dev) { |
916 | int bit_nr = ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26; | 916 | int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; |
917 | 917 | ||
918 | mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); | 918 | mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); |
919 | rx_mode |= AcceptMulticast; | 919 | rx_mode |= AcceptMulticast; |