diff options
author | 2018-09-03 10:38:14 +0300 | |
---|---|---|
committer | 2018-09-17 15:12:31 -0700 | |
commit | 6b359d5550a1ae7a1269c9dc1dd73dfdc4d6fe58 (patch) | |
tree | a80ae335413cbe8ea821274bb4b34694d0b400f1 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net/mlx5: Fix read from coherent memory (diff) | |
download | linux-dev-6b359d5550a1ae7a1269c9dc1dd73dfdc4d6fe58.tar.xz linux-dev-6b359d5550a1ae7a1269c9dc1dd73dfdc4d6fe58.zip |
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: 18e568c390c6 ("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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions