]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix a race with XSKICOSQ in XSK wakeup flow
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Fri, 2 Aug 2019 11:42:14 +0000 (14:42 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Aug 2019 18:43:56 +0000 (11:43 -0700)
commit420c41a4fa439af11a5ed7eba6aef770b7e5eb4b
tree03c817cb3915e48d1ff361f94cd8fc4eceef7817
parent7775e67eeaf359f2171ad87dc8c77f8649bc93f8
net/mlx5e: Fix a race with XSKICOSQ in XSK wakeup flow

Add a missing spinlock around XSKICOSQ usage at the activation stage,
because there is a race between a configuration change and the
application calling sendto().

Fixes: 40e89241b3e0 ("net/mlx5e: Add XSK zero-copy support")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c