xfrm: Register xfrm_dev_notifier in appropriate place
commite9a441b6e729e16092fcc18e3962b952a01d1e3c
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 29 Mar 2018 14:03:25 +0000 (29 17:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 14:59:23 +0000 (30 10:59 -0400)
tree5c965e67ad80ab77a91f12c87446aa96067baf5c
parentcaeeeda3444b1339dca8be22aa09e1441f90e6b7
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>
include/net/xfrm.h
net/xfrm/xfrm_device.c
net/xfrm/xfrm_policy.c