OSDN Git Service

net/sched: skbedit: use per-cpu counters
authorDavide Caratti <dcaratti@redhat.com>
Wed, 11 Jul 2018 14:04:49 +0000 (16:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:54:12 +0000 (14:54 -0700)
commit6f3dfb0dc831953187fea8e3b798768611441321
tree3ff8469e14aa3f3467977307d11388bab9befac7
parentcca9bab1b72cd2296097c75f59ef11ef80461279
net/sched: skbedit: use per-cpu counters

use per-CPU counters, instead of sharing a single set of stats with all
cores: this removes the need of spinlocks when stats are read/updated.

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