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>
This commit is contained in:

committed by
David S. Miller

parent
fdb8b29867
commit
00f54e6892
@@ -2820,7 +2820,7 @@ int addrconf_set_dstaddr(struct net *net, void __user *arg)
|
||||
dev = __dev_get_by_name(net, p.name);
|
||||
if (!dev)
|
||||
goto err_exit;
|
||||
err = dev_open(dev);
|
||||
err = dev_open(dev, NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@@ -655,7 +655,7 @@ static struct net_device *ip6mr_reg_vif(struct net *net, struct mr_table *mrt)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (dev_open(dev))
|
||||
if (dev_open(dev, NULL))
|
||||
goto failure;
|
||||
|
||||
dev_hold(dev);
|
||||
|
Reference in New Issue
Block a user