mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 15:43:35 -04:00
RDMA/hns: Remove the condition of light load for posting DWQE
Even in the case of heavy load, direct WQE can still be posted. The
hardware will decide whether to drop the DWQE or not. Thus, the limit
needs to be removed.
Fixes: 01584a5edc ("RDMA/hns: Add support of direct wqe")
Link: https://lore.kernel.org/r/1619593950-29414-1-git-send-email-liweihang@huawei.com
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
6efb943b86
commit
591f762b27
@@ -791,8 +791,7 @@ static int hns_roce_v2_post_send(struct ib_qp *ibqp,
|
||||
qp->sq.head += nreq;
|
||||
qp->next_sge = sge_idx;
|
||||
|
||||
if (nreq == 1 && qp->sq.head == qp->sq.tail + 1 &&
|
||||
(qp->en_flags & HNS_ROCE_QP_CAP_DIRECT_WQE))
|
||||
if (nreq == 1 && (qp->en_flags & HNS_ROCE_QP_CAP_DIRECT_WQE))
|
||||
write_dwqe(hr_dev, qp, wqe);
|
||||
else
|
||||
update_sq_db(hr_dev, qp);
|
||||
|
||||
Reference in New Issue
Block a user