]> 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)
commitcac9f8124161f883b2548a9b498b41dc62edaf9b
tree39308305a164ac2fbee70f4f110faa552ca0a7c1
parent337766f74c66f0ce018c2a8cf9237ac46855ada7
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