]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iw_cxgb4: always set iw_cm_id.provider_data
authorSteve Wise <swise@opengridcomputing.com>
Thu, 10 May 2018 14:31:28 +0000 (07:31 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 May 2018 18:32:30 +0000 (14:32 -0400)
In active side connections, the provider_data field is not
getting set.  This will be used in a subsequent patch to dump
state, so always set it.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c

index 4cf17c650c36dcda6c0852daa918f6396bc46601..0912fa026327bee67b3acc6737a9c1e480c64c74 100644 (file)
@@ -3210,6 +3210,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
 
        ep->com.cm_id = cm_id;
        ref_cm_id(&ep->com);
+       cm_id->provider_data = ep;
        ep->com.dev = dev;
        ep->com.qp = get_qhp(dev, conn_param->qpn);
        if (!ep->com.qp) {