Re: [PATCH net] xfrm: add NETDEV_UNREGISTER event process for xfrmi

2019-08-26 Thread Steffen Klassert
On Mon, Aug 26, 2019 at 04:25:05PM +0800, Xin Long wrote: > When creating a xfrmi dev, it always holds the phydev. The xfrmi dev should > be deleted when the phydev is being unregistered, so that the phydev can be > put on time. Otherwise the phydev's deleting will get stuck: > > # ip link add d

[PATCH net] xfrm: add NETDEV_UNREGISTER event process for xfrmi

2019-08-26 Thread Xin Long
When creating a xfrmi dev, it always holds the phydev. The xfrmi dev should be deleted when the phydev is being unregistered, so that the phydev can be put on time. Otherwise the phydev's deleting will get stuck: # ip link add dummy10 type dummy # ip link add xfrmi10 type xfrm dev dummy10 #