summaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorIdo Schimmel2018-01-07 11:45:03 +0100
committerDavid S. Miller2018-01-08 03:29:39 +0100
commit2127d95aef6c795c3bd8b805722c5c46e8fe45dd (patch)
tree58c813e1f7f40d6b06b2522adaf35077077f7790 /net/ipv6/addrconf.c
parentipv6: Mark dead nexthops with appropriate flags (diff)
downloadkernel-qcow2-linux-2127d95aef6c795c3bd8b805722c5c46e8fe45dd.tar.gz
kernel-qcow2-linux-2127d95aef6c795c3bd8b805722c5c46e8fe45dd.tar.xz
kernel-qcow2-linux-2127d95aef6c795c3bd8b805722c5c46e8fe45dd.zip
ipv6: Clear nexthop flags upon netdev up
Previous patch marked nexthops with the 'dead' and 'linkdown' flags. Clear these flags when the netdev comes back up. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index ed06b1190f05..b6405568ed7b 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -3484,6 +3484,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
if (run_pending)
addrconf_dad_run(idev);
+ /* Device has an address by now */
+ rt6_sync_up(dev, RTNH_F_DEAD);
+
/*
* If the MTU changed during the interface down,
* when the interface up, the changed MTU must be