Commit a6781257 authored by liyangyang's avatar liyangyang Committed by Xie XiuQi
Browse files

RDMA/hns: Bugfix for cqe hem init



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

In the current version, if using parameter cqe_entry_sz
for hns_roce_init_hem_table(), there may be thread failure
	when running connect_data_arm as below:
	thread 1 end with success
	thread 3 end with success
	thread 2 end with failure
	thread 0 end with failure

As a necessary parameter for the next process, cqe_entry_sz
should be replaced by mtt_entry_sz

Fixes: f6b37f5d758b ("RDMA/hns:Fix bug that caused srq creation to fail")

Signed-off-by: default avatarliyangyang <liyangyang20@huawei.com>
Signed-off-by: default avatarliyangyang20 <liyangyang20@huawei.com>
Reviewed-by: default avatarwangxi <wangxi11@huawei.com>
Reviewed-by: default avatarchenglang <chenglang@huawei.com>
Reviewed-by: default avatarliuyixian <liuyixian@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent c1f34178
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment