diff options
author | Ismail, Mustafa <mustafa.ismail@intel.com> | 2016-04-18 18:33:09 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-04-28 23:32:54 +0300 |
commit | c2b75ef7dcb9cf5e237955b0d0fa48918978493d (patch) | |
tree | 3498f1c39a2deca98e8fd25936364a17a08f12dd /drivers/infiniband/hw/i40iw/i40iw_verbs.h | |
parent | fa4153796121e573be7f9b8f59ac7eb0694d1ac0 (diff) | |
download | linux-c2b75ef7dcb9cf5e237955b0d0fa48918978493d.tar.xz |
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.h | 2 |
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 |