net: dont update dev->trans_start
Second round of drivers for Gb cards (and NIU one I forgot in the 10GB round) Now that core network takes care of trans_start updates, dont do it in drivers themselves, if possible. Drivers can avoid one cache miss (on dev->trans_start) in their start_xmit() handler. Exceptions are NETIF_F_LLTX drivers Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
28679751a9
commit
cdd0db058d
@@ -717,7 +717,7 @@ static void yellowfin_tx_timeout(struct net_device *dev)
|
||||
if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE)
|
||||
netif_wake_queue (dev); /* Typical path */
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
}
|
||||
|
||||
@@ -876,7 +876,6 @@ static int yellowfin_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
netif_start_queue (dev); /* Typical path */
|
||||
else
|
||||
yp->tx_full = 1;
|
||||
dev->trans_start = jiffies;
|
||||
|
||||
if (yellowfin_debug > 4) {
|
||||
printk(KERN_DEBUG "%s: Yellowfin transmit frame #%d queued in slot %d.\n",
|
||||
|
Reference in New Issue
Block a user