net: introduce NETDEV_CHANGE_TX_QUEUE_LEN
authorJason Wang <[email protected]>
Thu, 30 Jun 2016 06:45:35 +0000 (14:45 +0800)
committerDavid S. Miller <[email protected]>
Fri, 1 Jul 2016 09:32:17 +0000 (05:32 -0400)
commit08294a26e15d7baf1e14ee569e9f2bc82a7ae768
treef64f414e88d4352b4f20f4db869848caa4144c62
parentbf900b3dbefee49855c17aa09fb4245346a78fb3
net: introduce NETDEV_CHANGE_TX_QUEUE_LEN

This patch introduces a new event - NETDEV_CHANGE_TX_QUEUE_LEN, this
will be triggered when tx_queue_len. It could be used by net device
who want to do some processing at that time. An example is tun who may
want to resize tx array when tx_queue_len is changed.

Cc: John Fastabend <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Acked-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/netdevice.h
net/core/net-sysfs.c
net/core/rtnetlink.c