net/sched: act_skbedit: don't use spinlock in the data path
authorDavide Caratti <dcaratti@redhat.com>
Wed, 11 Jul 2018 14:04:50 +0000 (16:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:54:12 +0000 (14:54 -0700)
commitc749cdda9089eb1fdb6a9ab98f945124d12f2595
tree29ecf38f5595632596fd00c7f8b47c52e176aed6
parent6f3dfb0dc831953187fea8e3b798768611441321
net/sched: act_skbedit: don't use spinlock in the data path

use RCU instead of spin_{,un}lock_bh, to protect concurrent read/write on
act_skbedit configuration. This reduces the effects of contention in the
data path, in case 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_skbedit.h
net/sched/act_skbedit.c