OSDN Git Service

bnxt_re: Clean cq for kernel consumers only
authorDevesh Sharma <devesh.sharma@broadcom.com>
Tue, 26 Feb 2019 03:18:04 +0000 (22:18 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Mar 2019 14:51:14 +0000 (10:51 -0400)
commit0fca467e81468c61083174ae0639b1ee38de2994
treeb1fdc65898f2a0f1017443a3650462e458ff281e
parentbb618451544ca9152a1a213d0a2b93d231c4cce1
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>
drivers/infiniband/hw/bnxt_re/ib_verbs.c