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.
> 
> It's no good that the policy is gone but the xdst still hold there.
> The worse thing is that xdst->route/orig_dst is also hold and can
> not be released even if the orig_dst is already expired.
> 
> This patch is to do the garbage collection if there is any policy
> removed in xfrm_policy_flush.
> 
> Signed-off-by: Xin Long <lucien....@gmail.com>

Applied to the ipsec tree, thanks!

Reply via email to