diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-10-03 11:49:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 11:10:56 -0700 |
commit | b7a595577ef3dc9add2b3e6d00869d017306bfbe (patch) | |
tree | 61f4fb043e35a7e53fea84e6114f507586c84786 /net/ipv4/fib_notifier.c | |
parent | 3f9e5c119a47d0fce01f8524ff0aba3acca71bb9 (diff) | |
download | linux-b7a595577ef3dc9add2b3e6d00869d017306bfbe.tar.bz2 |
net: fib_notifier: propagate extack down to the notifier block callback
Since errors are propagated all the way up to the caller, propagate
possible extack of the caller all the way down to the notifier block
callback.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_notifier.c')
-rw-r--r-- | net/ipv4/fib_notifier.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/fib_notifier.c b/net/ipv4/fib_notifier.c index 0c57f68a9340..0c28bd469a68 100644 --- a/net/ipv4/fib_notifier.c +++ b/net/ipv4/fib_notifier.c @@ -34,15 +34,16 @@ static unsigned int fib4_seq_read(struct net *net) return net->ipv4.fib_seq + fib4_rules_seq_read(net); } -static int fib4_dump(struct net *net, struct notifier_block *nb) +static int fib4_dump(struct net *net, struct notifier_block *nb, + struct netlink_ext_ack *extack) { int err; - err = fib4_rules_dump(net, nb); + err = fib4_rules_dump(net, nb, extack); if (err) return err; - return fib_notify(net, nb); + return fib_notify(net, nb, extack); } static const struct fib_notifier_ops fib4_notifier_ops_template = { |