IB/mlx5: Fix rdma counter binding for RAW QP
authorPatrisious Haddad <phaddad@nvidia.com>
Mon, 9 Oct 2023 10:41:20 +0000 (13:41 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 15 Oct 2023 08:04:01 +0000 (11:04 +0300)
commitc1336bb4aa5e809a622a87d74311275514086596
tree6a7f860b09f0901e48bace44eb9281c785a42b44
parent5ac388db27c443dadfbb0b8b23fa7ccf429d901a
IB/mlx5: Fix rdma counter binding for RAW QP

Previously when we had a RAW QP, we bound a counter to it when it moved
to INIT state, using the counter context inside RQC.

But when we try to modify that counter later in RTS state we used
modify QP which tries to change the counter inside QPC instead of RQC.

Now we correctly modify the counter set_id inside of RQC instead of QPC
for the RAW QP.

Fixes: d14133dd4161 ("IB/mlx5: Support set qp counter")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Link: https://lore.kernel.org/r/2e5ab6713784a8fe997d19c508187a0dfecf2dfc.1696847964.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/qp.c