summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2019-07-15 13:00:23 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2019-07-17 11:03:54 +0300
commit22d6552f827ef76ade3edf6bbb3f05048a0a7d8b (patch)
treeeef63032d09302072b65a0b8654460d24c5cc753 /net/xfrm/xfrm_policy.c
parentc5d1030f23002430c2a336b2b629b9d6f72b3564 (diff)
downloadlinux-22d6552f827ef76ade3edf6bbb3f05048a0a7d8b.tar.xz
xfrm interface: fix management of phydev
With the current implementation, phydev cannot be removed: $ ip link add dummy type dummy $ ip link add xfrm1 type xfrm dev dummy if_id 1 $ ip l d dummy kernel:[77938.465445] unregister_netdevice: waiting for dummy to become free. Usage count = 1 Manage it like in ip tunnels, ie just keep the ifindex. Not that the side effect, is that the phydev is now optional. Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Tested-by: Julien Floret <julien.floret@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
0 files changed, 0 insertions, 0 deletions