diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2014-07-21 11:25:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-21 23:23:59 -0400 |
commit | 3e5c02c9ef9a86f39014156ddb8a9676a01f41a9 (patch) | |
tree | bf5ef2edbd6b883a108383266a4b739a803f8022 | |
parent | dd92b12453b34850912ccdeefa740a2c96f870c2 (diff) |
iw_cxgb4: Support query_qp() verb
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index fd66bd9a9db0..0e7e0e30fba4 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c | |||
@@ -1856,5 +1856,11 @@ int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, | |||
1856 | memset(attr, 0, sizeof *attr); | 1856 | memset(attr, 0, sizeof *attr); |
1857 | memset(init_attr, 0, sizeof *init_attr); | 1857 | memset(init_attr, 0, sizeof *init_attr); |
1858 | attr->qp_state = to_ib_qp_state(qhp->attr.state); | 1858 | 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; | ||
1859 | return 0; | 1865 | return 0; |
1860 | } | 1866 | } |