aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_provider.c
diff options
context:
space:
mode:
authorEli Cohen <eli@mellanox.co.il>2006-02-13 19:40:21 -0500
committerRoland Dreier <rolandd@cisco.com>2006-03-20 13:08:15 -0500
commit8ebe5077e37a0cb0da527e397460188e6bfdd3ee (patch)
tree401491fb7a94516dfbeeee027d8eeb294117cb5b /drivers/infiniband/hw/mthca/mthca_provider.c
parent8bdb0e8632e0f5061bd18b6934346cb609490135 (diff)
IB/mthca: Support for query QP and SRQ
Implement the query_qp and query_srq methods in mthca. Signed-off-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.c')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_provider.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c
index 1fa1b55ffffe..084bea592df5 100644
--- a/drivers/infiniband/hw/mthca/mthca_provider.c
+++ b/drivers/infiniband/hw/mthca/mthca_provider.c
@@ -1264,12 +1264,14 @@ int mthca_register_device(struct mthca_dev *dev)
1264 (1ull << IB_USER_VERBS_CMD_RESIZE_CQ) | 1264 (1ull << IB_USER_VERBS_CMD_RESIZE_CQ) |
1265 (1ull << IB_USER_VERBS_CMD_DESTROY_CQ) | 1265 (1ull << IB_USER_VERBS_CMD_DESTROY_CQ) |
1266 (1ull << IB_USER_VERBS_CMD_CREATE_QP) | 1266 (1ull << IB_USER_VERBS_CMD_CREATE_QP) |
1267 (1ull << IB_USER_VERBS_CMD_QUERY_QP) |
1267 (1ull << IB_USER_VERBS_CMD_MODIFY_QP) | 1268 (1ull << IB_USER_VERBS_CMD_MODIFY_QP) |
1268 (1ull << IB_USER_VERBS_CMD_DESTROY_QP) | 1269 (1ull << IB_USER_VERBS_CMD_DESTROY_QP) |
1269 (1ull << IB_USER_VERBS_CMD_ATTACH_MCAST) | 1270 (1ull << IB_USER_VERBS_CMD_ATTACH_MCAST) |
1270 (1ull << IB_USER_VERBS_CMD_DETACH_MCAST) | 1271 (1ull << IB_USER_VERBS_CMD_DETACH_MCAST) |
1271 (1ull << IB_USER_VERBS_CMD_CREATE_SRQ) | 1272 (1ull << IB_USER_VERBS_CMD_CREATE_SRQ) |
1272 (1ull << IB_USER_VERBS_CMD_MODIFY_SRQ) | 1273 (1ull << IB_USER_VERBS_CMD_MODIFY_SRQ) |
1274 (1ull << IB_USER_VERBS_CMD_QUERY_SRQ) |
1273 (1ull << IB_USER_VERBS_CMD_DESTROY_SRQ); 1275 (1ull << IB_USER_VERBS_CMD_DESTROY_SRQ);
1274 dev->ib_dev.node_type = IB_NODE_CA; 1276 dev->ib_dev.node_type = IB_NODE_CA;
1275 dev->ib_dev.phys_port_cnt = dev->limits.num_ports; 1277 dev->ib_dev.phys_port_cnt = dev->limits.num_ports;
@@ -1291,7 +1293,8 @@ int mthca_register_device(struct mthca_dev *dev)
1291 1293
1292 if (dev->mthca_flags & MTHCA_FLAG_SRQ) { 1294 if (dev->mthca_flags & MTHCA_FLAG_SRQ) {
1293 dev->ib_dev.create_srq = mthca_create_srq; 1295 dev->ib_dev.create_srq = mthca_create_srq;
1294 dev->ib_dev.modify_srq = mthca_modify_srq; 1296 dev->ib_dev.modify_srq = mthca_modify_srq;
1297 dev->ib_dev.query_srq = mthca_query_srq;
1295 dev->ib_dev.destroy_srq = mthca_destroy_srq; 1298 dev->ib_dev.destroy_srq = mthca_destroy_srq;
1296 1299
1297 if (mthca_is_memfree(dev)) 1300 if (mthca_is_memfree(dev))
@@ -1302,6 +1305,7 @@ int mthca_register_device(struct mthca_dev *dev)
1302 1305
1303 dev->ib_dev.create_qp = mthca_create_qp; 1306 dev->ib_dev.create_qp = mthca_create_qp;
1304 dev->ib_dev.modify_qp = mthca_modify_qp; 1307 dev->ib_dev.modify_qp = mthca_modify_qp;
1308 dev->ib_dev.query_qp = mthca_query_qp;
1305 dev->ib_dev.destroy_qp = mthca_destroy_qp; 1309 dev->ib_dev.destroy_qp = mthca_destroy_qp;
1306 dev->ib_dev.create_cq = mthca_create_cq; 1310 dev->ib_dev.create_cq = mthca_create_cq;
1307 dev->ib_dev.resize_cq = mthca_resize_cq; 1311 dev->ib_dev.resize_cq = mthca_resize_cq;