]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/hns: Fix querying wrong SCC context for DIP algorithm
authorwenglianfa <wenglianfa@huawei.com>
Sat, 26 Jul 2025 07:53:45 +0000 (15:53 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 13 Aug 2025 10:34:25 +0000 (06:34 -0400)
commit085a1b42e52750769a3fa29d4da6c05ab56f18f8
tree2bf0ca9d1e1916c0e4265cb64c35211102cca0ab
parentd4ac86b47563c7895dae28658abd1879d266b2b4
RDMA/hns: Fix querying wrong SCC context for DIP algorithm

When using DIP algorithm, all QPs establishing connections with
the same destination IP share the same SCC, which is indexed by
dip_idx, but dip_idx isn't necessarily equal to qpn. Therefore,
dip_idx should be used to query SCC context instead of qpn.

Fixes: 124a9fbe43aa ("RDMA/hns: Append SCC context to the raw dump of QPC")
Signed-off-by: wenglianfa <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20250726075345.846957-1-huangjunxian6@hisilicon.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_restrack.c