]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/sched: act_police: use per-cpu counters
authorDavide Caratti <dcaratti@redhat.com>
Thu, 13 Sep 2018 17:29:12 +0000 (19:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2018 22:30:22 +0000 (15:30 -0700)
commit93be42f9173bbc133bd72915b658394308437d00
tree0b4577ae42b508b99ed8da35f8df393499fefdc8
parentc3ec8bcceb07ab81e4ff017b4ebbacc137a5a15e
net/sched: act_police: use per-cpu counters

use per-CPU counters, instead of sharing a single set of stats with all
cores. This removes the need of using spinlock when statistics are read
or updated.

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