[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170427072713.GW2649@secunet.com>
Date: Thu, 27 Apr 2017 09:27:13 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Xin Long <lucien.xin@...il.com>
CC: network dev <netdev@...r.kernel.org>, <davem@...emloft.net>,
Herbert Xu <herbert@...dor.apana.org.au>, <fw@...len.de>
Subject: Re: [PATCH net] xfrm: do the garbage collection after flushing policy
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.xin@...il.com>
Applied to the ipsec tree, thanks!
Powered by blists - more mailing lists