]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce helper dev_change_tx_queue_len()
authorCong Wang <xiyou.wangcong@gmail.com>
Fri, 26 Jan 2018 02:26:22 +0000 (18:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:42:15 +0000 (12:42 -0500)
commite79cbe052a37521210a2c9928d3eb0a4c8c25bc6
tree2daa13ccb3dbe823770ca45732729dfa4a150ef8
parent4cf6b5743b28c1ca42b75c15b453693577f32a53
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>
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c
net/core/rtnetlink.c