Skip to content
Commit 4c5b9d96 authored by Manish Kurup's avatar Manish Kurup Committed by David S. Miller
Browse files

act_vlan: VLAN action rewrite to use RCU lock/unlock and update



Using a spinlock in the VLAN action causes performance issues when the VLAN
action is used on multiple cores. Rewrote the VLAN action to use RCU read
locking for reads and updates instead.
All functions now use an RCU dereferenced pointer to access the VLAN action
context. Modified helper functions used by other modules, to use the RCU as
opposed to directly accessing the structure.

Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarManish Kurup <manish.kurup@verizon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf068bdd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment