aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/amd8111e.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/amd8111e.c')
-rw-r--r--drivers/net/amd8111e.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c
index 8d58f0a8f42f..585c25f4b60c 100644
--- a/drivers/net/amd8111e.c
+++ b/drivers/net/amd8111e.c
@@ -1339,8 +1339,6 @@ static netdev_tx_t amd8111e_start_xmit(struct sk_buff *skb,
1339 writel( VAL1 | TDMD0, lp->mmio + CMD0); 1339 writel( VAL1 | TDMD0, lp->mmio + CMD0);
1340 writel( VAL2 | RDMD0,lp->mmio + CMD0); 1340 writel( VAL2 | RDMD0,lp->mmio + CMD0);
1341 1341
1342 dev->trans_start = jiffies;
1343
1344 if(amd8111e_tx_queue_avail(lp) < 0){ 1342 if(amd8111e_tx_queue_avail(lp) < 0){
1345 netif_stop_queue(dev); 1343 netif_stop_queue(dev);
1346 } 1344 }
@@ -1376,7 +1374,7 @@ list to the device.
1376*/ 1374*/
1377static void amd8111e_set_multicast_list(struct net_device *dev) 1375static void amd8111e_set_multicast_list(struct net_device *dev)
1378{ 1376{
1379 struct dev_mc_list *mc_ptr; 1377 struct netdev_hw_addr *ha;
1380 struct amd8111e_priv *lp = netdev_priv(dev); 1378 struct amd8111e_priv *lp = netdev_priv(dev);
1381 u32 mc_filter[2] ; 1379 u32 mc_filter[2] ;
1382 int bit_num; 1380 int bit_num;
@@ -1407,8 +1405,8 @@ static void amd8111e_set_multicast_list(struct net_device *dev)
1407 /* load all the multicast addresses in the logic filter */ 1405 /* load all the multicast addresses in the logic filter */
1408 lp->options |= OPTION_MULTICAST_ENABLE; 1406 lp->options |= OPTION_MULTICAST_ENABLE;
1409 mc_filter[1] = mc_filter[0] = 0; 1407 mc_filter[1] = mc_filter[0] = 0;
1410 netdev_for_each_mc_addr(mc_ptr, dev) { 1408 netdev_for_each_mc_addr(ha, dev) {
1411 bit_num = (ether_crc_le(ETH_ALEN, mc_ptr->dmi_addr) >> 26) & 0x3f; 1409 bit_num = (ether_crc_le(ETH_ALEN, ha->addr) >> 26) & 0x3f;
1412 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); 1410 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31);
1413 } 1411 }
1414 amd8111e_writeq(*(u64*)mc_filter,lp->mmio+ LADRF); 1412 amd8111e_writeq(*(u64*)mc_filter,lp->mmio+ LADRF);