]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/xfrm/xfrm_state.c
xfrm: state lookup can be lockless
authorFlorian Westphal <fw@strlen.de>
Tue, 20 Sep 2016 13:45:26 +0000 (15:45 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 21 Sep 2016 10:37:29 +0000 (12:37 +0200)
commitc2f672fc94642bae96821a393f342edcfa9794a6
tree4dd04af628613f0aa692a2f811cf1deb89c4419e
parent34a3d4b2d1f1b7c81af79f6f93a6cef4c3a0f54a
xfrm: state lookup can be lockless

This is called from the packet input path, we get lock contention
if many cpus handle ipsec in parallel.

After recent rcu conversion it is safe to call __xfrm_state_lookup
without the spinlock.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c