summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-01-25 21:26:22 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-29 12:42:15 -0500
commit6a643ddb5624be7e0694d49f5765a8d41c1ab6d0 (patch)
tree2daa13ccb3dbe823770ca45732729dfa4a150ef8 /include/linux/netdevice.h
parent4cd879515d686849eec5f718aeac62a70b067d82 (diff)
net: introduce helper dev_change_tx_queue_len()
This patch promotes the local change_tx_queue_len() to a core helper function, dev_change_tx_queue_len(), so that rtnetlink and net-sysfs could share the code. This also prepares for the following patch. Note, the -EFAULT in the original code doesn't make sense, we should propagate the errno from notifiers. Cc: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index cd46d3d63aa0..4c77f39ebd65 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3331,6 +3331,7 @@ int dev_get_alias(const struct net_device *, char *, size_t);
3331int dev_change_net_namespace(struct net_device *, struct net *, const char *); 3331int dev_change_net_namespace(struct net_device *, struct net *, const char *);
3332int __dev_set_mtu(struct net_device *, int); 3332int __dev_set_mtu(struct net_device *, int);
3333int dev_set_mtu(struct net_device *, int); 3333int dev_set_mtu(struct net_device *, int);
3334int dev_change_tx_queue_len(struct net_device *, unsigned long);
3334void dev_set_group(struct net_device *, int); 3335void dev_set_group(struct net_device *, int);
3335int dev_set_mac_address(struct net_device *, struct sockaddr *); 3336int dev_set_mac_address(struct net_device *, struct sockaddr *);
3336int dev_change_carrier(struct net_device *, bool new_carrier); 3337int dev_change_carrier(struct net_device *, bool new_carrier);