Commit 038ab8b7 authored by Mitesh Ahuja's avatar Mitesh Ahuja Committed by Doug Ledford

RDMA/ocrdma: Fix the request length for RDMA_QUERY_QP mailbox command to FW.

Fix ocrdma_query_qp to pass correct mailbox request length to FW.
Signed-off-by: default avatarMitesh Ahuja <mitesh.ahuja@avagotech.com>
Signed-off-by: default avatarSelvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 6f5deab0
...@@ -2412,7 +2412,7 @@ int ocrdma_mbx_query_qp(struct ocrdma_dev *dev, struct ocrdma_qp *qp, ...@@ -2412,7 +2412,7 @@ int ocrdma_mbx_query_qp(struct ocrdma_dev *dev, struct ocrdma_qp *qp,
struct ocrdma_query_qp *cmd; struct ocrdma_query_qp *cmd;
struct ocrdma_query_qp_rsp *rsp; struct ocrdma_query_qp_rsp *rsp;
cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_QUERY_QP, sizeof(*cmd)); cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_QUERY_QP, sizeof(*rsp));
if (!cmd) if (!cmd)
return status; return status;
cmd->qp_id = qp->id; cmd->qp_id = qp->id;
......
...@@ -1176,6 +1176,8 @@ struct ocrdma_query_qp_rsp { ...@@ -1176,6 +1176,8 @@ struct ocrdma_query_qp_rsp {
struct ocrdma_mqe_hdr hdr; struct ocrdma_mqe_hdr hdr;
struct ocrdma_mbx_rsp rsp; struct ocrdma_mbx_rsp rsp;
struct ocrdma_qp_params params; struct ocrdma_qp_params params;
u32 dpp_credits_cqid;
u32 rbq_id;
}; };
enum { enum {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment