]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:57:09 +0000 (11:57 +0100)
commit767e4c76e0daa7fb61b1af155ed00f7c1b035e3d
treec532f7610ed10e5bae3e9cfd58c4bb76d89b6245
parent13ee0d9bae3bf3e65ac8cdc7ccc6c8218a6c8bcb
IB/mlx5: Fix rdma counter binding for RAW QP

[ Upstream commit c1336bb4aa5e809a622a87d74311275514086596 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/qp.c