summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorDevesh Sharma <devesh.sharma@broadcom.com>2019-02-25 22:18:04 -0500
committerJason Gunthorpe <jgg@mellanox.com>2019-03-04 10:51:14 -0400
commit0fca467e81468c61083174ae0639b1ee38de2994 (patch)
treeb1fdc65898f2a0f1017443a3650462e458ff281e /drivers/infiniband
parentbb618451544ca9152a1a213d0a2b93d231c4cce1 (diff)
downloadlinux-0fca467e81468c61083174ae0639b1ee38de2994.tar.gz
linux-0fca467e81468c61083174ae0639b1ee38de2994.tar.bz2
linux-0fca467e81468c61083174ae0639b1ee38de2994.zip
bnxt_re: Clean cq for kernel consumers only
Kernel space provider driver should clean the CQs belonging to kernel space consumers only. The current implementation is doing reverse of it. Fixing the same by avoiding the call to __clean_cq on a kernel qp during destroy. Fixes: c50866e2853a ("bnxt_re: fix the regression due to changes in alloc_pbl") Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/bnxt_re/ib_verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
index 24092911c2ac..071b2fc38b0b 100644
--- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c
+++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
@@ -803,7 +803,7 @@ int bnxt_re_destroy_qp(struct ib_qp *ib_qp)
return rc;
}
- if (!rdma_is_kernel_res(&qp->ib_qp.res)) {
+ if (rdma_is_kernel_res(&qp->ib_qp.res)) {
flags = bnxt_re_lock_cqs(qp);
bnxt_qplib_clean_qp(&qp->qplib_qp);
bnxt_re_unlock_cqs(qp, flags);