mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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 <john.r.fastabend@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bf900b3dbe
commit
08294a26e1
3 changed files with 26 additions and 4 deletions
|
@ -2237,6 +2237,7 @@ struct netdev_lag_lower_state_info {
|
|||
#define NETDEV_PRECHANGEUPPER 0x001A
|
||||
#define NETDEV_CHANGELOWERSTATE 0x001B
|
||||
#define NETDEV_UDP_TUNNEL_PUSH_INFO 0x001C
|
||||
#define NETDEV_CHANGE_TX_QUEUE_LEN 0x001E
|
||||
|
||||
int register_netdevice_notifier(struct notifier_block *nb);
|
||||
int unregister_netdevice_notifier(struct notifier_block *nb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue