Re: [PATCH net] xfrm: do the garbage collection after flushing policy

2017-04-27 Thread Steffen Klassert
On Mon, Apr 24, 2017 at 03:33:39PM +0800, Xin Long wrote: > Now xfrm garbage collection can be triggered by 'ip xfrm policy del'. > These is no reason not to do it after flushing policies, especially > considering that 'garbage collection deferred' is only triggered > when it reaches gc_thresh. >

[PATCH net] xfrm: do the garbage collection after flushing policy

2017-04-24 Thread Xin Long
Now xfrm garbage collection can be triggered by 'ip xfrm policy del'. These is no reason not to do it after flushing policies, especially considering that 'garbage collection deferred' is only triggered when it reaches gc_thresh. It's no good that the policy is gone but the xdst still hold there.