net/mlx5: make VLAN network interface thread safe
authorSuanming Mou <suanmingm@nvidia.com>
Wed, 28 Oct 2020 09:33:27 +0000 (17:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:04 +0000 (23:35 +0100)
commitc6ca05823c98346422b110730760ca3c070ff0b7
tree134f67f4e070c4b55353e66d0923f208b8acc002
parent89a8e3c4f84bc053d916666048f7ff9f8b62edcf
net/mlx5: make VLAN network interface thread safe

This commit protects the VLAN VM workaround area using a spinlock
in multiple-thread flow insertion to make it thread safe.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/linux/mlx5_nl.h
drivers/net/mlx5/linux/mlx5_vlan_os.c