net/mlx5e: vxlan: Use RCU for vxlan table lookup
authorSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 May 2020 00:09:05 +0000 (17:09 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 25 Jun 2020 19:41:43 +0000 (12:41 -0700)
commit7a64ca862ac96d5e78a59bd57549034134ee0949
treef746dbe3adcff7fcaad4d9d40ced79f8214896e3
parent185901ceebbd4f8b11db478fd3a30eb66e5d591d
net/mlx5e: vxlan: Use RCU for vxlan table lookup

Remove the spinlock protecting the vxlan table and use RCU instead.
This will improve performance as it will eliminate contention on data
path cores.

Fixes: b3f63c3d5e2c ("net/mlx5e: Add netdev support for VXLAN tunneling")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c