diff options
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r-- | drivers/infiniband/core/cma.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 31d958e2c9ec..3e7104554597 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -1340,6 +1340,8 @@ static int cma_iw_handler(struct iw_cm_id *iw_id, struct iw_cm_event *iw_event) | |||
1340 | switch (iw_event->status) { | 1340 | switch (iw_event->status) { |
1341 | case 0: | 1341 | case 0: |
1342 | event.event = RDMA_CM_EVENT_ESTABLISHED; | 1342 | event.event = RDMA_CM_EVENT_ESTABLISHED; |
1343 | event.param.conn.initiator_depth = iw_event->ird; | ||
1344 | event.param.conn.responder_resources = iw_event->ord; | ||
1343 | break; | 1345 | break; |
1344 | case -ECONNRESET: | 1346 | case -ECONNRESET: |
1345 | case -ECONNREFUSED: | 1347 | case -ECONNREFUSED: |
@@ -1355,6 +1357,8 @@ static int cma_iw_handler(struct iw_cm_id *iw_id, struct iw_cm_event *iw_event) | |||
1355 | break; | 1357 | break; |
1356 | case IW_CM_EVENT_ESTABLISHED: | 1358 | case IW_CM_EVENT_ESTABLISHED: |
1357 | event.event = RDMA_CM_EVENT_ESTABLISHED; | 1359 | event.event = RDMA_CM_EVENT_ESTABLISHED; |
1360 | event.param.conn.initiator_depth = iw_event->ird; | ||
1361 | event.param.conn.responder_resources = iw_event->ord; | ||
1358 | break; | 1362 | break; |
1359 | default: | 1363 | default: |
1360 | BUG_ON(1); | 1364 | BUG_ON(1); |
@@ -1445,8 +1449,8 @@ static int iw_conn_req_handler(struct iw_cm_id *cm_id, | |||
1445 | event.event = RDMA_CM_EVENT_CONNECT_REQUEST; | 1449 | event.event = RDMA_CM_EVENT_CONNECT_REQUEST; |
1446 | event.param.conn.private_data = iw_event->private_data; | 1450 | event.param.conn.private_data = iw_event->private_data; |
1447 | event.param.conn.private_data_len = iw_event->private_data_len; | 1451 | event.param.conn.private_data_len = iw_event->private_data_len; |
1448 | event.param.conn.initiator_depth = attr.max_qp_init_rd_atom; | 1452 | event.param.conn.initiator_depth = iw_event->ird; |
1449 | event.param.conn.responder_resources = attr.max_qp_rd_atom; | 1453 | event.param.conn.responder_resources = iw_event->ord; |
1450 | 1454 | ||
1451 | /* | 1455 | /* |
1452 | * Protect against the user destroying conn_id from another thread | 1456 | * Protect against the user destroying conn_id from another thread |