diff options
author | Naresh Gottumukkala <bgottumukkala@emulex.com> | 2013-08-26 11:57:51 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-09-03 06:18:46 +0200 |
commit | d7e19c0ad9baa0cfe7ef8b69a182a7db1dee6b52 (patch) | |
tree | a7925c819414fa37fd972b4472643d1c7150073c /drivers/infiniband/hw/ocrdma/ocrdma_hw.c | |
parent | RDMA/ocrdma: Fill PVID in UMC case (diff) | |
download | linux-d7e19c0ad9baa0cfe7ef8b69a182a7db1dee6b52.tar.xz linux-d7e19c0ad9baa0cfe7ef8b69a182a7db1dee6b52.zip |
RDMA/ocrdma: Fix passing wrong opcode to modify_srq
Fix passing wrong opcode to ocrdma_modify_srq and query SRQ.
Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_hw.c')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index acf5441857ac..4ed8235d2d36 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -2393,7 +2393,7 @@ int ocrdma_mbx_modify_srq(struct ocrdma_srq *srq, struct ib_srq_attr *srq_attr) struct ocrdma_pd *pd = srq->pd; struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); - cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_CREATE_SRQ, sizeof(*cmd)); + cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_MODIFY_SRQ, sizeof(*cmd)); if (!cmd) return status; cmd->id = srq->id; @@ -2410,7 +2410,7 @@ int ocrdma_mbx_query_srq(struct ocrdma_srq *srq, struct ib_srq_attr *srq_attr) struct ocrdma_query_srq *cmd; struct ocrdma_dev *dev = get_ocrdma_dev(srq->ibsrq.device); - cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_CREATE_SRQ, sizeof(*cmd)); + cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_QUERY_SRQ, sizeof(*cmd)); if (!cmd) return status; cmd->id = srq->rq.dbid; |