diff options
author | Devesh Sharma | 2017-05-22 12:15:40 +0200 |
---|---|---|
committer | Doug Ledford | 2017-06-14 19:01:59 +0200 |
commit | 018cf5995d69d25be7330c3b8bef4c31bf2b273b (patch) | |
tree | c9119c8ab9ad9a01024d7f7e05f8ee588b1d7455 /drivers/infiniband/hw/bnxt_re/ib_verbs.h | |
parent | RDMA/bnxt_re: Add HW workaround for avoiding stall for UD QPs (diff) | |
download | kernel-qcow2-linux-018cf5995d69d25be7330c3b8bef4c31bf2b273b.tar.gz kernel-qcow2-linux-018cf5995d69d25be7330c3b8bef4c31bf2b273b.tar.xz kernel-qcow2-linux-018cf5995d69d25be7330c3b8bef4c31bf2b273b.zip |
RDMA/bnxt_re: Fix RQE posting logic
This patch adds code to ring RQ Doorbell aggressively
so that the adapter can DMA RQ buffers sooner, instead
of DMA all WQEs in the post_recv WR list together at the
end of the post_recv verb.
Also use spinlock to serialize RQ posting
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.h')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/ib_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.h b/drivers/infiniband/hw/bnxt_re/ib_verbs.h index 25a4c8f4d939..16f62dc456f6 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.h +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.h @@ -74,6 +74,7 @@ struct bnxt_re_qp { struct bnxt_re_dev *rdev; struct ib_qp ib_qp; spinlock_t sq_lock; /* protect sq */ + spinlock_t rq_lock; /* protect rq */ struct bnxt_qplib_qp qplib_qp; struct ib_umem *sumem; struct ib_umem *rumem; |