]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_csum: use per-core statistics
authorDavide Caratti <dcaratti@redhat.com>
Mon, 22 Jan 2018 17:14:31 +0000 (18:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 00:51:46 +0000 (19:51 -0500)
commit355dd00f2db26cc956356169e773fd047f892fb4
tree1ecf84d1a926ba6a817f75fc8b9de8d817a7ca88
parenta01ba4871640e17ebce12482c7ffcd52317ef5f2
net/sched: act_csum: use per-core statistics

use per-CPU counters, like other TC actions do, instead of maintaining one
set of stats across all cores. This allows updating act_csum stats without
the need of protecting them using spin_{,un}lock_bh() invocations.

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