net/sched: act_csum: don't use spinlock in the fast path
authorDavide Caratti <dcaratti@redhat.com>
Mon, 22 Jan 2018 17:14:32 +0000 (18:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 00:51:46 +0000 (19:51 -0500)
commit9c5f69bbd75a7db80578782b037629c5f1e59dce
treed2c862565b212a36ce9629f328958a4fbbbc956c
parentf6052cf2fc51772ea51e54c795b9ea234834ad9a
net/sched: act_csum: don't use spinlock in the fast path

use RCU instead of spin_{,unlock}_bh() to protect concurrent read/write on
act_csum configuration, to reduce the effects of contention in the data
path when multiple readers are present.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_csum.h
net/sched/act_csum.c