]> git.baikalelectronics.ru Git - kernel.git/commit
act_vlan: Change stats update to use per-core stats
authorManish Kurup <kurup.manish@gmail.com>
Tue, 7 Nov 2017 20:48:15 +0000 (15:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Nov 2017 06:32:20 +0000 (15:32 +0900)
commit3683c55e41211a4d11deea5fe9c3e88ea3d7884b
treec304adae577a03f5ff4fb6e9478eeb06861d90b1
parent670e6661b6c1ec5a8366a271eef4498a34d7908a
act_vlan: Change stats update to use per-core stats

The VLAN action maintains one set of stats across all cores, and uses a
spinlock to synchronize updates to it from the same. Changed this to use a
per-CPU stats context instead.
This change will result in better performance.

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Manish Kurup <manish.kurup@verizon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_vlan.c