]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: dev: Add extack argument to dev_change_flags()
authorPetr Machata <petrm@mellanox.com>
Thu, 6 Dec 2018 17:05:42 +0000 (17:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 21:26:07 +0000 (13:26 -0800)
commit277d136646e584f94538b7b867f831330c8fe775
treecefe2e937441614164f9a471a921c94801fe8c60
parent06e446a08a4b9d2ca74f7cbf68e6373cf45ccf61
net: core: dev: Add extack argument to dev_change_flags()

In order to pass extack together with NETDEV_PRE_UP notifications, it's
necessary to route the extack to __dev_open() from diverse (possibly
indirect) callers. One prominent API through which the notification is
invoked is dev_change_flags().

Therefore extend dev_change_flags() with and extra extack argument and
update all users. Most of the calls end up just encoding NULL, but
several sites (VLAN, ipvlan, VRF, rtnetlink) do have extack available.

Since the function declaration line is changed anyway, name the other
function arguments to placate checkpatch.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/ipvlan/ipvlan_main.c
drivers/net/vrf.c
include/linux/netdevice.h
net/8021q/vlan.c
net/core/dev.c
net/core/dev_ioctl.c
net/core/net-sysfs.c
net/core/rtnetlink.c
net/ipv4/devinet.c
net/ipv4/ipconfig.c
net/openvswitch/vport-geneve.c
net/openvswitch/vport-gre.c
net/openvswitch/vport-vxlan.c