linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Alaa Hleihel 6b359d5550 net/mlx5: Check for SQ and not RQ state when modifying hairpin SQ
When modifying hairpin SQ, instead of checking if the next state equals
to MLX5_SQC_STATE_RDY, we compare it against the MLX5_RQC_STATE_RDY enum
value.

The code worked since both of MLX5_RQC_STATE_RDY and MLX5_SQC_STATE_RDY
have the same value today.

This patch fixes this issue.

Fixes: 18e568c390 ("net/mlx5: Hairpin pair core object setup")
Change-Id: I6758aa7b4bd137966ae28206b70648c5bc223b46
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2018-09-17 15:12:31 -07:00
..
mlx4 net/mlx4/en_rx: Mark expected switch fall-throughs 2018-08-07 17:54:20 -07:00
mlx5/core net/mlx5: Check for SQ and not RQ state when modifying hairpin SQ 2018-09-17 15:12:31 -07:00
mlxfw
mlxsw mlxsw: spectrum_buffers: Set up a dedicated pool for BUM traffic 2018-09-05 07:55:43 -07:00
Kconfig
Makefile