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

RDMA/hns: Fix the inconsistency between input max_send_sge and output max_send_sge

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



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

Delete the assignment to max_send_sge in the function to prevent
the inconsistency between input max_send_sge and output max_send_sge.

Fixes: 2a67a70d ("RDMA/hns: Fix the problem of sge nums")
Signed-off-by: default avatarwenglianfa <wenglianfa@huawei.com>
Signed-off-by: default avatarXinghai Cen <cenxinghai@h-partners.com>
parent bef6f06e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -650,7 +650,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;
}
@@ -758,7 +757,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;
}