i40iw: Fill in IRD value when on connect request
authorShiraz Saleem <shiraz.saleem@intel.com>
Wed, 30 Nov 2016 21:12:11 +0000 (15:12 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Dec 2016 21:09:43 +0000 (16:09 -0500)
IRD is not populated on connect request and application is
getting 0 for the value. Fill in the correct value on
connect request.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c

index 0c92037d4f7c9670d47943c9c02f5e060b516ff0..2f14de77cb1ade096c87dfbd4c311f660c8ff57a 100644 (file)
@@ -272,6 +272,7 @@ static int i40iw_send_cm_event(struct i40iw_cm_node *cm_node,
                event.provider_data = (void *)cm_node;
                event.private_data = (void *)cm_node->pdata_buf;
                event.private_data_len = (u8)cm_node->pdata.size;
+               event.ird = cm_node->ird_size;
                break;
        case IW_CM_EVENT_CONNECT_REPLY:
                i40iw_get_cmevent_info(cm_node, cm_id, &event);