Commit 5322d7fe authored by Shunfeng Yang's avatar Shunfeng Yang Committed by Yang Yingliang
Browse files

RDMA/hns: Bugfix for checking whether the srq is full when post wr



mainline inclusion
from mainline-v5.12
commit 1620f09b
category: bugfix
bugzilla: NA
CVE: NA

If a user posts WR by wr_list, the head pointer of idx_queue won't be
updated until all wqes are filled, so the judgment of whether head equals
to tail will get a wrong result. Fix above issue and move the head and
tail pointer from the srq structure into the idx_queue structure. After
idx_queue is filled with wqe idx, the head pointer of it will increase.

Signed-off-by: default avatarShunfeng Yang <yangshunfeng2@huawei.com>
Signed-off-by: default avatarYangyang Li <liyangyang20@huawei.com>
Reviewed-by: default avatarchunzhi hu <huchunzhi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ade0af19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment