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)
commitf6052cf2fc51772ea51e54c795b9ea234834ad9a
tree1ecf84d1a926ba6a817f75fc8b9de8d817a7ca88
parentb76f4189df5c54a892ae54ac23908cc54ae7134f
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