]> 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)
commitd2bd745a15f4ccf69c2943c2d109332e180c3458
tree809372e231c0dd27f6f116a41c16c4ebf9dacb17
parentc892562c9664fab0300a99442b3c17bf8e7cbe73
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