net/ipv6: Move call_fib6_entry_notifiers up for route adds
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 28 Mar 2018 01:21:59 +0000 (18:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 18:10:31 +0000 (14:10 -0400)
commit2233000cba40ee0784a2d5b5e2b2c38c1159a7ef
tree90b0c05895c4bb1efacdea9a21fbabbfb6932ac2
parentc1d7ee67acb54b7dc1408929ff70dfe46993e517
net/ipv6: Move call_fib6_entry_notifiers up for route adds

Move call to call_fib6_entry_notifiers for new IPv6 routes to right
before the insertion into the FIB. At this point notifier handlers can
decide the fate of the new route with a clean path to delete the
potential new entry if the notifier returns non-0.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c