diff options
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.c')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index dfbbbb28090b..8a51c3b5d657 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -157,16 +157,9 @@ isert_create_qp(struct isert_conn *isert_conn, | |||
157 | attr.recv_cq = comp->cq; | 157 | attr.recv_cq = comp->cq; |
158 | attr.cap.max_send_wr = ISERT_QP_MAX_REQ_DTOS; | 158 | attr.cap.max_send_wr = ISERT_QP_MAX_REQ_DTOS; |
159 | attr.cap.max_recv_wr = ISERT_QP_MAX_RECV_DTOS + 1; | 159 | attr.cap.max_recv_wr = ISERT_QP_MAX_RECV_DTOS + 1; |
160 | /* | 160 | attr.cap.max_send_sge = device->dev_attr.max_sge; |
161 | * FIXME: Use devattr.max_sge - 2 for max_send_sge as | 161 | isert_conn->max_sge = min(device->dev_attr.max_sge, |
162 | * work-around for RDMA_READs with ConnectX-2. | 162 | device->dev_attr.max_sge_rd); |
163 | * | ||
164 | * Also, still make sure to have at least two SGEs for | ||
165 | * outgoing control PDU responses. | ||
166 | */ | ||
167 | attr.cap.max_send_sge = max(2, device->dev_attr.max_sge - 2); | ||
168 | isert_conn->max_sge = attr.cap.max_send_sge; | ||
169 | |||
170 | attr.cap.max_recv_sge = 1; | 163 | attr.cap.max_recv_sge = 1; |
171 | attr.sq_sig_type = IB_SIGNAL_REQ_WR; | 164 | attr.sq_sig_type = IB_SIGNAL_REQ_WR; |
172 | attr.qp_type = IB_QPT_RC; | 165 | attr.qp_type = IB_QPT_RC; |