Re: [PATCH ipsec-next] xfrm: state lookup can be lockless

2016-09-22 Thread Steffen Klassert
On Tue, Sep 20, 2016 at 03:45:26PM +0200, Florian Westphal wrote: > 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

[PATCH ipsec-next] xfrm: state lookup can be lockless

2016-09-20 Thread Florian Westphal
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 --- net/xfrm/xfrm_state.c | 4 ++-- 1 file changed, 2 insertions(+),