]> git.baikalelectronics.ru Git - kernel.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)
commitef340c6b41a8b61673604ec8f0da84f3cc02f3eb
tree0b4577ae42b508b99ed8da35f8df393499fefdc8
parent9975bbdfb8952bb30defed7056d9179fcdf31383
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