net/mlx5: DR, Add a spinlock to protect the send ring
authorAlex Vesker <valex@mellanox.com>
Wed, 20 May 2020 15:09:14 +0000 (18:09 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 01:13:51 +0000 (18:13 -0700)
commitcedb28191fdfb4fc1da0a7612465624998de7da2
treeedb6602099bbb74a8f0fac815765817c2bfaed81
parentfca533041aac0426f5b5618a564aeb588fc125e9
net/mlx5: DR, Add a spinlock to protect the send ring

Adding this lock will allow writing steering entries without
locking the dr_domain and allow parallel insertion.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h