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>
This commit is contained in:

committed by
David S. Miller

parent
3f9e5c119a
commit
b7a595577e
@@ -27,15 +27,16 @@ static unsigned int fib6_seq_read(struct net *net)
|
||||
return fib6_tables_seq_read(net) + fib6_rules_seq_read(net);
|
||||
}
|
||||
|
||||
static int fib6_dump(struct net *net, struct notifier_block *nb)
|
||||
static int fib6_dump(struct net *net, struct notifier_block *nb,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = fib6_rules_dump(net, nb);
|
||||
err = fib6_rules_dump(net, nb, extack);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return fib6_tables_dump(net, nb);
|
||||
return fib6_tables_dump(net, nb, extack);
|
||||
}
|
||||
|
||||
static const struct fib_notifier_ops fib6_notifier_ops_template = {
|
||||
|
Reference in New Issue
Block a user