diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-29 17:03:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-30 17:59:23 +0300 |
commit | e9a441b6e729e16092fcc18e3962b952a01d1e3c (patch) | |
tree | 5c965e67ad80ab77a91f12c87446aa96067baf5c /net/xfrm/xfrm_device.c | |
parent | caeeeda3444b1339dca8be22aa09e1441f90e6b7 (diff) | |
download | linux-e9a441b6e729e16092fcc18e3962b952a01d1e3c.tar.xz |
xfrm: Register xfrm_dev_notifier in appropriate place
Currently, driver registers it from pernet_operations::init method,
and this breaks modularity, because initialization of net namespace
and netdevice notifiers are orthogonal actions. We don't have
per-namespace netdevice notifiers; all of them are global for all
devices in all namespaces.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_device.c')
-rw-r--r-- | net/xfrm/xfrm_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index e87d6c4dd5b6..175941e15a6e 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -350,7 +350,7 @@ static struct notifier_block xfrm_dev_notifier = { .notifier_call = xfrm_dev_event, }; -void __net_init xfrm_dev_init(void) +void __init xfrm_dev_init(void) { register_netdevice_notifier(&xfrm_dev_notifier); } |