Commit e3c28592 authored by wenglianfa's avatar wenglianfa Committed by Chengchang Tang
Browse files

RDMA/hns: Fix the modification of max_send_sge

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB30V8



----------------------------------------------------------------------

The attribute max_send_sge describes the requested max number of
SGE in a WR in the SQ. It is a necessary attribute for creating
a qp. It is returned directly without modifying its value.

Fixes: 0c5e259b ("RDMA/hns: Fix incorrect sge nums calculation")
Signed-off-by: default avatarwenglianfa <wenglianfa@huawei.com>
Signed-off-by: default avatarXinghai Cen <cenxinghai@h-partners.com>
parent 8e668a71
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -668,7 +668,6 @@ static int set_user_sq_size(struct hns_roce_dev *hr_dev,

	hr_qp->sq.wqe_shift = ucmd->log_sq_stride;
	hr_qp->sq.wqe_cnt = cnt;
	cap->max_send_sge = hr_qp->sq.max_gs;

	return 0;
}
@@ -780,7 +779,6 @@ static int set_kernel_sq_size(struct hns_roce_dev *hr_dev,

	/* sync the parameters of kernel QP to user's configuration */
	cap->max_send_wr = cnt;
	cap->max_send_sge = hr_qp->sq.max_gs;

	return 0;
}