aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_verbs.h
diff options
context:
space:
mode:
authorIsmail, Mustafa <mustafa.ismail@intel.com>2016-04-18 10:33:09 -0500
committerDoug Ledford <dledford@redhat.com>2016-04-28 16:32:54 -0400
commitc2b75ef7dcb9cf5e237955b0d0fa48918978493d (patch)
tree3498f1c39a2deca98e8fd25936364a17a08f12dd /drivers/infiniband/hw/i40iw/i40iw_verbs.h
parentRDMA/i40iw: Fix SD calculation for initial HMC creation (diff)
downloadlinux-dev-c2b75ef7dcb9cf5e237955b0d0fa48918978493d.tar.xz
linux-dev-c2b75ef7dcb9cf5e237955b0d0fa48918978493d.zip
RDMA/i40iw: Adding queue drain functions
Adding sq and rq drain functions, which block until all previously posted wr-s in the specified queue have completed. A completion object is signaled to unblock the thread, when the last cqe for the corresponding queue is processed. Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Faisal Latif <faisal.latif@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_verbs.h')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_verbs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.h b/drivers/infiniband/hw/i40iw/i40iw_verbs.h
index 0acb6c8fe0f0..0069be8a5a38 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_verbs.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.h
@@ -170,5 +170,7 @@ struct i40iw_qp {
struct i40iw_pbl *iwpbl;
struct i40iw_dma_mem q2_ctx_mem;
struct i40iw_dma_mem ietf_mem;
+ struct completion sq_drained;
+ struct completion rq_drained;
};
#endif