Re: [net] xfrm: allow to release xfrm_state with flush

2018-04-18 Thread Steffen Klassert
On Thu, Apr 12, 2018 at 12:03:14PM -0700, Jacek Kalwas wrote: > Call to flush SAs doesn't release xfrm_state in case there was a > traffic associated with that state and state was already deleted. > > Given patch calls xfrm_policy_cache_flush despite of actual states > deleted in xfrm_state_flush

[net] xfrm: allow to release xfrm_state with flush

2018-04-12 Thread Jacek Kalwas
Call to flush SAs doesn't release xfrm_state in case there was a traffic associated with that state and state was already deleted. Given patch calls xfrm_policy_cache_flush despite of actual states deleted in xfrm_state_flush function. Signed-off-by: Jacek Kalwas --- net/xfrm/xfrm_state.c | 6 +