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>
This commit is contained in:

committed by
David S. Miller

parent
caeeeda344
commit
e9a441b6e7
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user