From: Steffen Klassert <steffen.klassert@secunet.com>
To: Horia Geanta <horia.geanta@freescale.com>
Cc: "David S. Miller" <davem@davemloft.net>, <netdev@vger.kernel.org>
Subject: Re: [PATCH ipsec-next v3] xfrm: avoid creating temporary SA when there are no listeners
Date: Thu, 13 Feb 2014 13:08:26 +0100 [thread overview]
Message-ID: <20140213120826.GC3438@secunet.com> (raw)
In-Reply-To: <1392214806-21966-1-git-send-email-horia.geanta@freescale.com>
On Wed, Feb 12, 2014 at 04:20:06PM +0200, 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 <horia.geanta@freescale.com>
Applied to ipsec-next, thanks!
prev parent reply other threads:[~2014-02-13 12:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 9:12 [PATCH] xfrm: avoid creating temporary SA when there are no listeners Horia Geanta
2014-01-29 9:17 ` Horia Geantă
2014-02-12 12:09 ` Steffen Klassert
2014-02-12 14:00 ` [PATCH ipsec-next v2] " Horia Geanta
2014-02-12 14:20 ` [PATCH ipsec-next v3] " Horia Geanta
2014-02-13 12:08 ` Steffen Klassert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140213120826.GC3438@secunet.com \
--to=steffen.klassert@secunet.com \
--cc=davem@davemloft.net \
--cc=horia.geanta@freescale.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).