net: always pass struct netdev_notifier_info to netdevice notifiers
commit 351638e7de
(net: pass info struct via netdevice notifier)
breaks booting of my KVM guest, this is due to we still forget to pass
struct netdev_notifier_info in several places. This patch completes it.
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
06ecf24bdf
commit
75538c2b85
6 changed files with 21 additions and 11 deletions
|
@ -4645,13 +4645,16 @@ int addrconf_sysctl_forward(ctl_table *ctl, int write,
|
|||
|
||||
static void dev_disable_change(struct inet6_dev *idev)
|
||||
{
|
||||
struct netdev_notifier_info info;
|
||||
|
||||
if (!idev || !idev->dev)
|
||||
return;
|
||||
|
||||
netdev_notifier_info_init(&info, idev->dev);
|
||||
if (idev->cnf.disable_ipv6)
|
||||
addrconf_notify(NULL, NETDEV_DOWN, idev->dev);
|
||||
addrconf_notify(NULL, NETDEV_DOWN, &info);
|
||||
else
|
||||
addrconf_notify(NULL, NETDEV_UP, idev->dev);
|
||||
addrconf_notify(NULL, NETDEV_UP, &info);
|
||||
}
|
||||
|
||||
static void addrconf_disable_change(struct net *net, __s32 newf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue