]> git.baikalelectronics.ru Git - kernel.git/commit
netdevice: shrink size of struct netdev_queue
authorFlorian Westphal <fw@strlen.de>
Tue, 3 May 2016 01:29:09 +0000 (03:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 02:51:41 +0000 (22:51 -0400)
commit0de0e0671c88c18e55d35462526faa75578b2594
tree16235e037fac8565efc4baa06c4b6fd161e26803
parent945970a3798d1a539b1efc22589cce0f4ea496c3
netdevice: shrink size of struct netdev_queue

- trans_timeout is incremented when tx queue timed out (tx watchdog).
- tx_maxrate is set via sysfs

Moving tx_maxrate to read-mostly part shrinks the struct by 64 bytes.
While at it, also move trans_timeout (it is out-of-place in the
'write-mostly' part).

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