diff options
author | Tatyana Nikolova <Tatyana.E.Nikolova@intel.com> | 2016-03-29 12:58:37 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-05-13 19:39:59 -0400 |
commit | 1997412db64bae810edd9ef77d62aefccf965e80 (patch) | |
tree | e1f84d812aa4952aada02a3147cd33932da816ad /drivers/infiniband/hw/nes/nes_verbs.h | |
parent | 825107a237bd0a1589e5af3853a14ba61bef02ef (diff) | |
download | op-kernel-dev-1997412db64bae810edd9ef77d62aefccf965e80.zip op-kernel-dev-1997412db64bae810edd9ef77d62aefccf965e80.tar.gz |
RDMA/nes: 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: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.h')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.h b/drivers/infiniband/hw/nes/nes_verbs.h index 7029088..e02a566 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.h +++ b/drivers/infiniband/hw/nes/nes_verbs.h @@ -189,6 +189,8 @@ struct nes_qp { u8 pau_pending; u8 pau_state; __u64 nesuqp_addr; + struct completion sq_drained; + struct completion rq_drained; }; struct ib_mr *nes_reg_phys_mr(struct ib_pd *ib_pd, |