diff options
author | Eli Cohen <eli@mellanox.co.il> | 2006-02-13 19:40:21 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 13:08:15 -0500 |
commit | 8ebe5077e37a0cb0da527e397460188e6bfdd3ee (patch) | |
tree | 401491fb7a94516dfbeeee027d8eeb294117cb5b /drivers/infiniband/hw/mthca/mthca_dev.h | |
parent | 8bdb0e8632e0f5061bd18b6934346cb609490135 (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_dev.h')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_dev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_dev.h b/drivers/infiniband/hw/mthca/mthca_dev.h index d827558c27be..2f4500f85ae0 100644 --- a/drivers/infiniband/hw/mthca/mthca_dev.h +++ b/drivers/infiniband/hw/mthca/mthca_dev.h | |||
@@ -479,6 +479,7 @@ int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd, | |||
479 | void mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq); | 479 | void mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq); |
480 | int mthca_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, | 480 | int mthca_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, |
481 | enum ib_srq_attr_mask attr_mask); | 481 | enum ib_srq_attr_mask attr_mask); |
482 | int mthca_query_srq(struct ib_srq *srq, struct ib_srq_attr *srq_attr); | ||
482 | void mthca_srq_event(struct mthca_dev *dev, u32 srqn, | 483 | void mthca_srq_event(struct mthca_dev *dev, u32 srqn, |
483 | enum ib_event_type event_type); | 484 | enum ib_event_type event_type); |
484 | void mthca_free_srq_wqe(struct mthca_srq *srq, u32 wqe_addr); | 485 | void mthca_free_srq_wqe(struct mthca_srq *srq, u32 wqe_addr); |
@@ -489,6 +490,8 @@ int mthca_arbel_post_srq_recv(struct ib_srq *srq, struct ib_recv_wr *wr, | |||
489 | 490 | ||
490 | void mthca_qp_event(struct mthca_dev *dev, u32 qpn, | 491 | void mthca_qp_event(struct mthca_dev *dev, u32 qpn, |
491 | enum ib_event_type event_type); | 492 | enum ib_event_type event_type); |
493 | int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, | ||
494 | struct ib_qp_init_attr *qp_init_attr); | ||
492 | int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask); | 495 | int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask); |
493 | int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, | 496 | int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, |
494 | struct ib_send_wr **bad_wr); | 497 | struct ib_send_wr **bad_wr); |