summaryrefslogtreecommitdiff
path: root/drivers/infiniband/sw/rdmavt/cq.h
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2016-01-23 00:00:15 +0300
committerDoug Ledford <dledford@redhat.com>2016-03-11 04:37:24 +0300
commit6f6387ae75c1499b315ddcd3c74402d44423e1cc (patch)
tree66777d29ff37276127929b233a6428e485ce3b0f /drivers/infiniband/sw/rdmavt/cq.h
parent47c7ea6d8e70510c3b3e311cfc20943cd3fe786a (diff)
downloadlinux-6f6387ae75c1499b315ddcd3c74402d44423e1cc.tar.xz
IB/rdmavt: Add completion queue functions
Brings in completion queue functionality. A kthread worker is added to the rvt_dev_info to serve as a worker for completion queues. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Harish Chegondi <harish.chegondi@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rdmavt/cq.h')
-rw-r--r--drivers/infiniband/sw/rdmavt/cq.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rdmavt/cq.h b/drivers/infiniband/sw/rdmavt/cq.h
index 63a517db6dbf..3813d90efad2 100644
--- a/drivers/infiniband/sw/rdmavt/cq.h
+++ b/drivers/infiniband/sw/rdmavt/cq.h
@@ -49,6 +49,7 @@
*/
#include <rdma/rdma_vt.h>
+#include <rdma/rdmavt_cq.h>
struct ib_cq *rvt_create_cq(struct ib_device *ibdev,
const struct ib_cq_init_attr *attr,
@@ -58,5 +59,6 @@ int rvt_destroy_cq(struct ib_cq *ibcq);
int rvt_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags);
int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
int rvt_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry);
-
+int rvt_driver_cq_init(struct rvt_dev_info *rdi);
+void rvt_cq_exit(struct rvt_dev_info *rdi);
#endif /* DEF_RVTCQ_H */