From: Steffen Klassert <steffen.klassert@secunet.com>
To: Florian Westphal <fw@strlen.de>
Cc: <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next 0/6] xfrm: convert xfrm_state_find to rcu
Date: Thu, 11 Aug 2016 13:13:01 +0200 [thread overview]
Message-ID: <20160811111301.GD5710@gauss.secunet.com> (raw)
In-Reply-To: <1470737769-30438-1-git-send-email-fw@strlen.de>
On Tue, Aug 09, 2016 at 12:16:03PM +0200, Florian Westphal wrote:
> This series converts state_by{dst,src,spi} to allow lookups without
> holding xfrm_state_lock.
>
> Only xfrm_state_find() is converted here for the (more common) case where
> we do not query key manager.
>
> Once more flows are created/destroyed (or the flow cache is overloaded and
> often cleans out other entries) this function (and the state lock)
> start to show up in perf.
>
> Florian Westphal (6):
> xfrm: state: use hlist_for_each_entry_rcu helper
> xfrm: state: use atomic_inc_not_zero to increment refcount
> xfrm: state: delay freeing until rcu grace period has elapsed
> xfrm: state: add sequence count to detect hash resizes
> xfrm: state: use rcu_deref and assign_pointer helpers
> xfrm: state: don't use lock anymore unless acquire operation is needed
>
> include/net/netns/xfrm.h | 6 +-
> net/xfrm/xfrm_state.c | 103 +++++++++++++++++++++++++++++++----------------
> 2 files changed, 72 insertions(+), 37 deletions(-)
All applied to the ipsec-next tree, thanks Florian!
prev parent reply other threads:[~2016-08-11 11:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-09 10:16 [PATCH net-next 0/6] xfrm: convert xfrm_state_find to rcu Florian Westphal
2016-08-09 10:16 ` [PATCH net-next 1/6] xfrm: state: use hlist_for_each_entry_rcu helper Florian Westphal
2016-08-09 10:16 ` [PATCH net-next 2/6] xfrm: state: use atomic_inc_not_zero to increment refcount Florian Westphal
2016-08-09 10:16 ` [PATCH net-next 3/6] xfrm: state: delay freeing until rcu grace period has elapsed Florian Westphal
2016-08-09 10:16 ` [PATCH net-next 4/6] xfrm: state: add sequence count to detect hash resizes Florian Westphal
2016-08-09 10:16 ` [PATCH net-next 5/6] xfrm: state: use rcu_deref and assign_pointer helpers Florian Westphal
2016-08-09 10:16 ` [PATCH net-next 6/6] xfrm: state: don't use lock anymore unless acquire operation is needed Florian Westphal
2016-08-11 11:13 ` 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=20160811111301.GD5710@gauss.secunet.com \
--to=steffen.klassert@secunet.com \
--cc=fw@strlen.de \
--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).