net: fib_notifier: make FIB notifier per-netns
Currently all users of FIB notifier only cares about events in init_net. Later in this patchset, users get interested in other namespaces too. However, for every registered block user is interested only about one namespace. Make the FIB notifier registration per-netns and avoid unnecessary calls of notifier block for other namespaces. 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
a5facc4cac
commit
7c550daffe
@@ -219,7 +219,7 @@ struct fib_nh_notifier_info {
|
||||
struct fib_nh *fib_nh;
|
||||
};
|
||||
|
||||
int call_fib4_notifier(struct notifier_block *nb, struct net *net,
|
||||
int call_fib4_notifier(struct notifier_block *nb,
|
||||
enum fib_event_type event_type,
|
||||
struct fib_notifier_info *info);
|
||||
int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
|
||||
|
Reference in New Issue
Block a user