net: trans_start cleanups
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
2b0b05ddc0
commit
1ae5dc342a
@@ -1040,11 +1040,11 @@ static void uli526x_timer(unsigned long data)
|
||||
|
||||
/* TX polling kick monitor */
|
||||
if ( db->tx_packet_cnt &&
|
||||
time_after(jiffies, dev->trans_start + ULI526X_TX_KICK) ) {
|
||||
time_after(jiffies, dev_trans_start(dev) + ULI526X_TX_KICK) ) {
|
||||
outl(0x1, dev->base_addr + DCR1); // Tx polling again
|
||||
|
||||
// TX Timeout
|
||||
if ( time_after(jiffies, dev->trans_start + ULI526X_TX_TIMEOUT) ) {
|
||||
if ( time_after(jiffies, dev_trans_start(dev) + ULI526X_TX_TIMEOUT) ) {
|
||||
db->reset_TXtimeout++;
|
||||
db->wait_reset = 1;
|
||||
printk( "%s: Tx timeout - resetting\n",
|
||||
|
Reference in New Issue
Block a user