]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46e78e7406dc819e77e9b2c91237512f39133a81
treed2c862565b212a36ce9629f328958a4fbbbc956c
parentcc2cce5fb1cb2ccfba6d90a2a29d771135f71941
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