net/mlx5e: Vxlan, add sync lock for add/del vxlan port
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 8 May 2018 23:17:06 +0000 (16:17 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 27 Jul 2018 22:46:11 +0000 (15:46 -0700)
commitaec4eab9af9606e8a6a1ceab3ec5a15030751876
tree30eabdfa3c0a10895b3cd8f30cc895ba142f67f1
parent1b318a92f3ddaed6c91d5027dfd42549f87602f6
net/mlx5e: Vxlan, add sync lock for add/del vxlan port

Vxlan API can and will be called from different mlx5 modules, we should
not count on mlx5e private state lock only, hence we introduce a vxlan
private mutex to sync between add/del vxlan port operations.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/vxlan.c