diff options
Diffstat (limited to 'drivers/net/sundance.c')
-rw-r--r-- | drivers/net/sundance.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index da45f01279c4..16803251a999 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c | |||
@@ -972,7 +972,7 @@ static void tx_timeout(struct net_device *dev) | |||
972 | 972 | ||
973 | dev->if_port = 0; | 973 | dev->if_port = 0; |
974 | 974 | ||
975 | dev->trans_start = jiffies; | 975 | dev->trans_start = jiffies; /* prevent tx timeout */ |
976 | dev->stats.tx_errors++; | 976 | dev->stats.tx_errors++; |
977 | if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { | 977 | if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { |
978 | netif_wake_queue(dev); | 978 | netif_wake_queue(dev); |
@@ -1084,7 +1084,6 @@ start_tx (struct sk_buff *skb, struct net_device *dev) | |||
1084 | } else { | 1084 | } else { |
1085 | netif_stop_queue (dev); | 1085 | netif_stop_queue (dev); |
1086 | } | 1086 | } |
1087 | dev->trans_start = jiffies; | ||
1088 | if (netif_msg_tx_queued(np)) { | 1087 | if (netif_msg_tx_queued(np)) { |
1089 | printk (KERN_DEBUG | 1088 | printk (KERN_DEBUG |
1090 | "%s: Transmit frame #%d queued in slot %d.\n", | 1089 | "%s: Transmit frame #%d queued in slot %d.\n", |