Re: [PATCH net v2 1/1] xfrm: Fix NETDEV_DOWN with IPSec offload

2017-05-08 Thread Steffen Klassert
On Mon, May 08, 2017 at 10:39:34AM +0300, il...@mellanox.com wrote: > From: Ilan Tayari > > Upon NETDEV_DOWN event, all xfrm_state objects which are bound to > the device are flushed. > > The condition for this is wrong, though, testing dev->hw_features > instead of dev->features. If a device ha

[PATCH net v2 1/1] xfrm: Fix NETDEV_DOWN with IPSec offload

2017-05-08 Thread ilant
From: Ilan Tayari Upon NETDEV_DOWN event, all xfrm_state objects which are bound to the device are flushed. The condition for this is wrong, though, testing dev->hw_features instead of dev->features. If a device has non-user-modifiable NETIF_F_HW_ESP, then its xfrm_state objects are not flushed,