diff options
author | Eli Cohen <eli@mellanox.co.il> | 2006-02-14 01:40:21 +0100 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 19:08:15 +0100 |
commit | 8ebe5077e37a0cb0da527e397460188e6bfdd3ee (patch) | |
tree | 401491fb7a94516dfbeeee027d8eeb294117cb5b /drivers/infiniband/hw/mthca/mthca_cmd.c | |
parent | IB/uverbs: Support for query SRQ from userspace (diff) | |
download | linux-8ebe5077e37a0cb0da527e397460188e6bfdd3ee.tar.xz linux-8ebe5077e37a0cb0da527e397460188e6bfdd3ee.zip |
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_cmd.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_cmd.c b/drivers/infiniband/hw/mthca/mthca_cmd.c index acd00831ef08..890c060ff4d1 100644 --- a/drivers/infiniband/hw/mthca/mthca_cmd.c +++ b/drivers/infiniband/hw/mthca/mthca_cmd.c @@ -1560,6 +1560,13 @@ int mthca_HW2SW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, CMD_TIME_CLASS_A, status); } +int mthca_QUERY_SRQ(struct mthca_dev *dev, u32 num, + struct mthca_mailbox *mailbox, u8 *status) +{ + return mthca_cmd_box(dev, 0, mailbox->dma, num, 0, + CMD_QUERY_SRQ, CMD_TIME_CLASS_A, status); +} + int mthca_ARM_SRQ(struct mthca_dev *dev, int srq_num, int limit, u8 *status) { return mthca_cmd(dev, limit, srq_num, 0, CMD_ARM_SRQ, |