]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ac21e451a1284829efe25a1868bb01262dbf48b
tree90b0c05895c4bb1efacdea9a21fbabbfb6932ac2
parent79c4325ebe3b5e076dc07d0c800a1584f250a401
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