]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Register xfrm_dev_notifier in appropriate place
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 29 Mar 2018 14:03:25 +0000 (17:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 14:59:23 +0000 (10:59 -0400)
commit19e6db8b3a1c159b6d6d9b2a994b3efa6811801c
tree5c965e67ad80ab77a91f12c87446aa96067baf5c
parentc4e8e810efba6a5be62edad58d2a6cedcecd2544
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