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
@@ -256,7 +256,7 @@ struct nsim_fib_data *nsim_fib_create(struct devlink *devlink)
|
||||
|
||||
data->fib_nb.notifier_call = nsim_fib_event_nb;
|
||||
err = register_fib_notifier(&init_net, &data->fib_nb,
|
||||
nsim_fib_dump_inconsistent);
|
||||
nsim_fib_dump_inconsistent, NULL);
|
||||
if (err) {
|
||||
pr_err("Failed to register fib notifier\n");
|
||||
goto err_out;
|
||||
|
Reference in New Issue
Block a user