Re: [PATCH] xfrm: avoid creating temporary SA when there are no listeners
From: Horia Geantă <hidden>
Date: 2014-01-29 09:17:36
From: Horia Geantă <hidden>
Date: 2014-01-29 09:17:36
On 1/29/2014 11:12 AM, Horia Geanta wrote:
In the case when KMs have no listeners, km_query() will fail and temporary SAs are garbage collected immediately after their allocation. This causes strain on memory allocation, leading even to OOM since temporary SA alloc/free cycle is performed for every packet and garbage collection does not keep up the pace. The sane thing to do is to make sure we have audience before temporary SA allocation. Signed-off-by: Horia Geanta<redacted> --- Resending - initially posted as RFC: http://www.spinics.net/lists/netdev/msg268454.html Please apply.
This is for ipsec-next, sorry for not mentioning in the first place. Regards, Horia