net: core: dev: Add extack argument to dev_open()
authorPetr Machata <petrm@mellanox.com>
Thu, 6 Dec 2018 17:05:36 +0000 (17:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 21:26:06 +0000 (13:26 -0800)
commit00f54e68924eaf075f3f24be18557899d347bc4a
treefa59ed2835386585396ebba68aecd4dd6350362f
parentfdb8b298676a39b660d10c6dcaaf5b702f811009
net: core: dev: Add extack argument to dev_open()

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_open().

Therefore extend dev_open() with and extra extack argument and update
all users. Most of the calls end up just encoding NULL, but bond and
team drivers have the extack readily available.

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>
23 files changed:
drivers/net/bonding/bond_main.c
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
drivers/net/ethernet/cisco/enic/enic_ethtool.c
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/falcon/ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/net_failover.c
drivers/net/team/team.c
drivers/net/wireless/intersil/hostap/hostap_main.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c
drivers/staging/fsl-dpaa2/ethsw/ethsw.c
drivers/staging/unisys/visornic/visornic_main.c
include/linux/netdevice.h
net/bluetooth/6lowpan.c
net/core/dev.c
net/core/netpoll.c
net/ipv4/ipmr.c
net/ipv6/addrconf.c
net/ipv6/ip6mr.c