]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Set of completion request bit should not clear other adjacent bits
authorTariq Toukan <tariqt@mellanox.com>
Tue, 18 Feb 2020 10:27:25 +0000 (12:27 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:20:20 +0000 (14:20 -0700)
commitee51addbdc4c05927aca7949f02f7b041c4ec9a2
treeae1f43dea0b4fab8cf8d000ef5e4f3b38770809a
parent7fd72201dd559a6f3ea6921b2338f0914b858821
net/mlx5e: Set of completion request bit should not clear other adjacent bits

In notify HW (ring doorbell) flow, we set the bit to request a completion
on the TX descriptor.
When doing so, we should not unset other bits in the same byte.
Currently, this does not fix a real issue, as we still don't have a flow
where both MLX5_WQE_CTRL_CQ_UPDATE and any adjacent bit are set together.

Fixes: edb66e78256f ("net/mlx5e: Move helper functions to a new txrx datapath header")
Fixes: a4dbec0b7e3d ("net/mlx5e: Generalize tx helper functions for different SQ types")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h