Skip to content

Commit 6b5e41a

Browse files
Junxian Huangrleon
authored andcommitted
RDMA/hns: Fix wrong value of max_sge_rd
There is no difference between the sge of READ and non-READ operations in hns RoCE. Set max_sge_rd to the same value as max_send_sge. Fixes: 9a44353 ("IB/hns: Add driver files for hns RoCE driver") Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Link: https://patch.msgid.link/20250311084857.3803665-8-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent eda0a2f commit 6b5e41a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/hns/hns_roce_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static int hns_roce_query_device(struct ib_device *ib_dev,
183183
IB_DEVICE_RC_RNR_NAK_GEN;
184184
props->max_send_sge = hr_dev->caps.max_sq_sg;
185185
props->max_recv_sge = hr_dev->caps.max_rq_sg;
186-
props->max_sge_rd = 1;
186+
props->max_sge_rd = hr_dev->caps.max_sq_sg;
187187
props->max_cq = hr_dev->caps.num_cqs;
188188
props->max_cqe = hr_dev->caps.max_cqes;
189189
props->max_mr = hr_dev->caps.num_mtpts;

0 commit comments

Comments
 (0)