aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/lib82596.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/lib82596.c')
-rw-r--r--drivers/net/lib82596.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/lib82596.c b/drivers/net/lib82596.c
index 973390b82ec2..ce5d6e909218 100644
--- a/drivers/net/lib82596.c
+++ b/drivers/net/lib82596.c
@@ -963,7 +963,7 @@ static void i596_tx_timeout (struct net_device *dev)
963 lp->last_restart = dev->stats.tx_packets; 963 lp->last_restart = dev->stats.tx_packets;
964 } 964 }
965 965
966 dev->trans_start = jiffies; 966 dev->trans_start = jiffies; /* prevent tx timeout */
967 netif_wake_queue (dev); 967 netif_wake_queue (dev);
968} 968}
969 969
@@ -974,7 +974,6 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
974 struct tx_cmd *tx_cmd; 974 struct tx_cmd *tx_cmd;
975 struct i596_tbd *tbd; 975 struct i596_tbd *tbd;
976 short length = skb->len; 976 short length = skb->len;
977 dev->trans_start = jiffies;
978 977
979 DEB(DEB_STARTTX, printk(KERN_DEBUG 978 DEB(DEB_STARTTX, printk(KERN_DEBUG
980 "%s: i596_start_xmit(%x,%p) called\n", 979 "%s: i596_start_xmit(%x,%p) called\n",
@@ -1092,7 +1091,7 @@ static int __devinit i82596_probe(struct net_device *dev)
1092 DMA_FREE(dev->dev.parent, sizeof(struct i596_dma), 1091 DMA_FREE(dev->dev.parent, sizeof(struct i596_dma),
1093 (void *)dma, lp->dma_addr); 1092 (void *)dma, lp->dma_addr);
1094 return i; 1093 return i;
1095 }; 1094 }
1096 1095
1097 DEB(DEB_PROBE, printk(KERN_INFO "%s: 82596 at %#3lx, %pM IRQ %d.\n", 1096 DEB(DEB_PROBE, printk(KERN_INFO "%s: 82596 at %#3lx, %pM IRQ %d.\n",
1098 dev->name, dev->base_addr, dev->dev_addr, 1097 dev->name, dev->base_addr, dev->dev_addr,
@@ -1388,7 +1387,7 @@ static void set_multicast_list(struct net_device *dev)
1388 } 1387 }
1389 1388
1390 if (!netdev_mc_empty(dev)) { 1389 if (!netdev_mc_empty(dev)) {
1391 struct dev_mc_list *dmi; 1390 struct netdev_hw_addr *ha;
1392 unsigned char *cp; 1391 unsigned char *cp;
1393 struct mc_cmd *cmd; 1392 struct mc_cmd *cmd;
1394 1393
@@ -1396,10 +1395,10 @@ static void set_multicast_list(struct net_device *dev)
1396 cmd->cmd.command = SWAP16(CmdMulticastList); 1395 cmd->cmd.command = SWAP16(CmdMulticastList);
1397 cmd->mc_cnt = SWAP16(netdev_mc_count(dev) * 6); 1396 cmd->mc_cnt = SWAP16(netdev_mc_count(dev) * 6);
1398 cp = cmd->mc_addrs; 1397 cp = cmd->mc_addrs;
1399 netdev_for_each_mc_addr(dmi, dev) { 1398 netdev_for_each_mc_addr(ha, dev) {
1400 if (!cnt--) 1399 if (!cnt--)
1401 break; 1400 break;
1402 memcpy(cp, dmi->dmi_addr, 6); 1401 memcpy(cp, ha->addr, 6);
1403 if (i596_debug > 1) 1402 if (i596_debug > 1)
1404 DEB(DEB_MULTI, 1403 DEB(DEB_MULTI,
1405 printk(KERN_DEBUG 1404 printk(KERN_DEBUG