summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/infiniband.h
diff options
context:
space:
mode:
authorMichael Brown2007-09-16 15:39:51 +0200
committerMichael Brown2007-09-16 15:39:51 +0200
commite238bb1e439cb614f2986a70546559efef16239f (patch)
tree5e26338518375c5f782453bf77f650d02353d1ac /src/include/gpxe/infiniband.h
parentcreate_cq() implemented (but not tested). (diff)
downloadipxe-e238bb1e439cb614f2986a70546559efef16239f.tar.gz
ipxe-e238bb1e439cb614f2986a70546559efef16239f.tar.xz
ipxe-e238bb1e439cb614f2986a70546559efef16239f.zip
destroy_cq() now implemented (not tested).
Diffstat (limited to 'src/include/gpxe/infiniband.h')
-rw-r--r--src/include/gpxe/infiniband.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/gpxe/infiniband.h b/src/include/gpxe/infiniband.h
index dd8022fb..973c5823 100644
--- a/src/include/gpxe/infiniband.h
+++ b/src/include/gpxe/infiniband.h
@@ -168,6 +168,25 @@ struct ib_address_vector {
* These represent a subset of the Infiniband Verbs.
*/
struct ib_device_operations {
+ /**
+ * Create completion queue
+ *
+ * @v ibdev Infiniband device
+ * @v log2_num_cqes Log2 of the number of completion queue entries
+ * @ret new_cq New completion queue
+ * @ret rc Return status code
+ */
+ int ( * create_cq ) ( struct ib_device *ibdev,
+ unsigned int log2_num_cqes,
+ struct ib_completion_queue **new_cq );
+ /**
+ * Destroy completion queue
+ *
+ * @v ibdev Infiniband device
+ * @v cq Completion queue
+ */
+ void ( * destroy_cq ) ( struct ib_device *ibdev,
+ struct ib_completion_queue *cq );
/** Post send work queue entry
*
* @v ibdev Infiniband device