aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-03-29 17:03:25 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-30 10:59:23 -0400
commite9a441b6e729e16092fcc18e3962b952a01d1e3c (patch)
tree5c965e67ad80ab77a91f12c87446aa96067baf5c /include
parentMerge branch 'Implement-of_get_nvmem_mac_address-helper' (diff)
downloadlinux-dev-e9a441b6e729e16092fcc18e3962b952a01d1e3c.tar.xz
linux-dev-e9a441b6e729e16092fcc18e3962b952a01d1e3c.zip
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 'include')
-rw-r--r--include/net/xfrm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index aa027ba1d032..a872379b69da 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1894,7 +1894,7 @@ static inline struct xfrm_offload *xfrm_offload(struct sk_buff *skb)
#endif
}
-void __net_init xfrm_dev_init(void);
+void __init xfrm_dev_init(void);
#ifdef CONFIG_XFRM_OFFLOAD
void xfrm_dev_resume(struct sk_buff *skb);