]> git.baikalelectronics.ru Git - kernel.git/commit
netdevice: add helper to update trans_start
authorFlorian Westphal <fw@strlen.de>
Tue, 3 May 2016 14:31:00 +0000 (16:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:16:48 +0000 (14:16 -0400)
commitbbb5e58661f860cf4e20b80e748d01508799044f
tree40195ab3c626cdd68034123f7b70bd4be9104da1
parentdb602ea05004f89f07b3b69f701cdb8f09460eb9
netdevice: add helper to update trans_start

trans_start exists twice:
- as member of net_device (legacy)
- as member of netdev_queue

In order to get rid of the legacy case, add a helper for the
dev->trans_update (this patch), then convert spots that do

dev->trans_start = jiffies

to use this helper (next patch).

This would then allow us to change the helper so that it updates the
trans_stamp of netdev queue 0 instead.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h