Skip to content

Commit 3e5c02c

Browse files
Hariprasad Shenaidavem330
authored andcommitted
iw_cxgb4: Support query_qp() verb
Signed-off-by: Steve Wise <[email protected]> Signed-off-by: Hariprasad Shenai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dd92b12 commit 3e5c02c

File tree

1 file changed

+6
-0
lines changed
  • drivers/infiniband/hw/cxgb4

1 file changed

+6
-0
lines changed

drivers/infiniband/hw/cxgb4/qp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,5 +1856,11 @@ int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
18561856
memset(attr, 0, sizeof *attr);
18571857
memset(init_attr, 0, sizeof *init_attr);
18581858
attr->qp_state = to_ib_qp_state(qhp->attr.state);
1859+
init_attr->cap.max_send_wr = qhp->attr.sq_num_entries;
1860+
init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries;
1861+
init_attr->cap.max_send_sge = qhp->attr.sq_max_sges;
1862+
init_attr->cap.max_recv_sge = qhp->attr.sq_max_sges;
1863+
init_attr->cap.max_inline_data = T4_MAX_SEND_INLINE;
1864+
init_attr->sq_sig_type = qhp->sq_sig_all ? IB_SIGNAL_ALL_WR : 0;
18591865
return 0;
18601866
}

0 commit comments

Comments
 (0)