OSDN Git Service

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)
commit55c894f762a1a99fca80ee55d593083d78e7e4fb
tree39308305a164ac2fbee70f4f110faa552ca0a7c1
parent7c550daffe22a97282effa75fe7c1f6b83563ecb
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