OSDN Git Service

net: ipv6: lower ndisc notifier priority below addrconf
authorDavid Ahern <dsahern@gmail.com>
Tue, 8 Aug 2017 21:51:02 +0000 (15:51 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:40:04 +0000 (22:40 -0700)
commit6eb7939371104e4ff78261c165c6f33ff6d90031
tree31ea9f8cdb2652f5d56628df95b74eecea1b0ffa
parent16587c210cc58c2571ee3905a1c1213ca2642506
net: ipv6: lower ndisc notifier priority below addrconf

ndisc_notify is used to send unsolicited neighbor advertisements
(e.g., on a link up). Currently, the ndisc notifier is run before the
addrconf notifer which means NA's are not sent for link-local addresses
which are added by the addrconf notifier.

Fix by lowering the priority of the ndisc notifier. Setting the priority
to ADDRCONF_NOTIFY_PRIORITY - 5 means it runs after addrconf and before
the route notifier which is ADDRCONF_NOTIFY_PRIORITY - 10.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c