net/mlx5e: Non-atomic RQ state indicator for UMR WQE in progress
authorTariq Toukan <tariqt@mellanox.com>
Mon, 3 Jul 2017 07:18:19 +0000 (10:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 3 Sep 2017 03:34:09 +0000 (06:34 +0300)
commita071cb9f25bef32ec309ca9d123022c52175341b
tree809372e231c0dd27f6f116a41c16c4ebf9dacb17
parenta1eaba4c5c29b6b5196b2237ce3a8d7d97622b2f
net/mlx5e: Non-atomic RQ state indicator for UMR WQE in progress

The indication for a UMR WQE in progress is needed only within
the NAPI context, and hence no races possible and no need for
the use of atomic operations.
The only place the flag is read outside of NAPI context is
in closure flow, after RQ is disabled flag is no more accessed
in NAPI.
Use a boolean instead of a bit in ring state, so that its
non-atomic set operations do not race with the atomic sets of
the other bits.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c