]> git.baikalelectronics.ru Git - kernel.git/commit
net: fib_notifier: propagate possible error during fib notifier registration
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Oct 2019 09:49:28 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 18:10:56 +0000 (11:10 -0700)
commite3c3b828be5921c7e8578ab8f723368c8bc9d193
tree39308305a164ac2fbee70f4f110faa552ca0a7c1
parentc2598fb9a2dcb6b6ab281e99c8dd14944e8aeac6
net: fib_notifier: propagate possible error during fib notifier registration

Unlike events for registered notifier, during the registration, the
errors that happened for the block being registered are not propagated
up to the caller. Make sure the error is propagated for FIB rules and
entries.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/core/fib_rules.c
net/ipv4/fib_notifier.c
net/ipv4/fib_trie.c
net/ipv4/ipmr_base.c
net/ipv6/ip6_fib.c