-
- Downloads
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>
Showing
- include/linux/netdevice.h 6 additions, 0 deletionsinclude/linux/netdevice.h
- net/core/dev.c 3 additions, 0 deletionsnet/core/dev.c
- net/core/netpoll.c 4 additions, 1 deletionnet/core/netpoll.c
- net/core/pktgen.c 1 addition, 0 deletionsnet/core/pktgen.c
- net/sched/sch_teql.c 1 addition, 0 deletionsnet/sched/sch_teql.c
Loading
Please register or sign in to comment