]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05b74674e36b9138b74c26f328d654e6aeb757b8
tree31ea9f8cdb2652f5d56628df95b74eecea1b0ffa
parent82d8790d98fbfa043443d813d70223d0a3d05617
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