diff options
author | David S. Miller <davem@davemloft.net> | 2022-03-19 17:49:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-19 17:49:08 +0300 |
commit | 62f65554f5cffb17234e2b267d6376efc561d1c0 (patch) | |
tree | 059c5b7c8389ee1251c95054ac85e074e352ad8b /net/xfrm/xfrm_device.c | |
parent | d5f497b889794161facc1522d86720b587d1c0b7 (diff) | |
parent | b58b1f563ab78955d37e9e43e02790a85c66ac05 (diff) | |
download | linux-62f65554f5cffb17234e2b267d6376efc561d1c0.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/
ipsec-next
Steffen Klassert says:
====================
pull request (net-next): ipsec-next 2022-03-19
1) Delete duplicated functions that calls same xfrm_api_check.
From Leon Romanovsky.
2) Align userland API of the default policy structure to the
internal structures. From Nicolas Dichtel.
====================
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 | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 3e3448ada1bb..36aa01d92b65 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -384,16 +384,6 @@ static int xfrm_api_check(struct net_device *dev) return NOTIFY_DONE; } -static int xfrm_dev_register(struct net_device *dev) -{ - return xfrm_api_check(dev); -} - -static int xfrm_dev_feat_change(struct net_device *dev) -{ - return xfrm_api_check(dev); -} - static int xfrm_dev_down(struct net_device *dev) { if (dev->features & NETIF_F_HW_ESP) @@ -408,10 +398,10 @@ static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void switch (event) { case NETDEV_REGISTER: - return xfrm_dev_register(dev); + return xfrm_api_check(dev); case NETDEV_FEAT_CHANGE: - return xfrm_dev_feat_change(dev); + return xfrm_api_check(dev); case NETDEV_DOWN: case NETDEV_UNREGISTER: |