]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit063c6edbbf840cf5f6ef26b0a4765a60f0e594b2
tree809372e231c0dd27f6f116a41c16c4ebf9dacb17
parent8e0995776238040cc51c1d0313067908be3369d5
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