OSDN Git Service

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)
commite0496cbbf8fb5d831e74b8cedb54236a49413679
treec304adae577a03f5ff4fb6e9478eeb06861d90b1
parentcbad52e92ad7f01f0be4ca58bde59462dc1afe3a
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