Eric Dumazet 08baf56108 net: txq_trans_update() helper
We would like to get rid of netdev->trans_start = jiffies; that about all net
drivers have to use in their start_xmit() function, and use txq->trans_start
instead.

This can be done generically in core network, as suggested by David.

Some devices, (particularly loopback) dont need trans_start update, because
they dont have transmit watchdog. We could add a new device flag, or rely
on fact that txq->tran_start can be updated is txq->xmit_lock_owner is
different than -1. Use a helper function to hide our choice.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-05-25 22:58:01 -07:00
..
2008-11-14 10:39:25 +11:00
2008-03-17 22:46:46 -07:00
2008-11-16 23:01:49 -08:00
2008-12-29 19:40:46 -08:00
2008-11-20 04:10:00 -08:00
2009-05-06 16:45:07 -07:00
2009-01-08 08:31:14 -08:00
2009-03-21 13:36:17 -07:00
2009-05-25 22:58:01 -07:00