]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfde9cca9b9c5e953dae47d7beed34b7716ad2597
tree29ecf38f5595632596fd00c7f8b47c52e176aed6
parentc4b3672fbc192593125f6a6d3e8ad1f90266e2b2
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