]> git.baikalelectronics.ru Git - kernel.git/commit
net: fib_notifier: move fib_notifier_ops from struct net into per-net struct
authorJiri Pirko <jiri@mellanox.com>
Thu, 5 Sep 2019 18:06:56 +0000 (20:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 15:28:22 +0000 (17:28 +0200)
commit280a7206b3f076c97dadad8d897f6a41e95be2e0
tree37a3455db84c070853c6d1fd6adb6de1a4e440ef
parentc1752abc13cd1525bd8931513b59dcb6b49230c2
net: fib_notifier: move fib_notifier_ops from struct net into per-net struct

No need for fib_notifier_ops to be in struct net. It is used only by
fib_notifier as a private data. Use net_generic to introduce per-net
fib_notifier struct and move fib_notifier_ops there.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/fib_notifier.c