]> 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)
commit236799333271af6f518aba62afcd16b4fe075df3
treed2c862565b212a36ce9629f328958a4fbbbc956c
parent355dd00f2db26cc956356169e773fd047f892fb4
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