From: Stan Smith Date: Fri, 1 Oct 2010 15:50:52 +0000 (+0000) Subject: [IPoIB_NDIS6_CM] initialize IBAL pointer in Endpoint struct @ EP creation; initialize... X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=423947f64b4f640f49836da8198756fb4019de14;p=~shefty%2Frdma-win.git [IPoIB_NDIS6_CM] initialize IBAL pointer in Endpoint struct @ EP creation; initialize only in one place as IBAL ptr does not change over life of EP. git-svn-id: svn://openib.tc.cornell.edu/gen1@2951 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp b/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp index 1ed68450..7a8830a3 100644 --- a/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp +++ b/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp @@ -179,6 +179,7 @@ ipoib_endpt_create( p_endpt->dgid = *p_dgid; p_endpt->dlid = dlid; p_endpt->qpn = qpn; + p_endpt->p_ifc = p_port->p_adapter->p_ifc; IPOIB_EXIT( IPOIB_DBG_ENDPT ); return p_endpt; diff --git a/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp b/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp index 35a08174..a19b06af 100644 --- a/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp +++ b/branches/WOF2-3/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp @@ -6808,7 +6808,6 @@ __endpt_mgr_add_bcast( } /* set reference to transport to be used while is not attached to the port */ p_endpt->is_mcast_listener = TRUE; - p_endpt->p_ifc = p_port->p_adapter->p_ifc; status = ipoib_endpt_set_mcast( p_endpt, p_port->ib_mgr.h_pd, p_port->port_num, @@ -7954,7 +7953,6 @@ __mcast_cb( } p_endpt = PARENT_STRUCT( p_item, ipoib_endpt_t, gid_item ); - p_endpt->p_ifc = p_port->p_adapter->p_ifc; /* Setup the endpoint for use. */ status = ipoib_endpt_set_mcast( p_endpt, diff --git a/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp b/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp index 1ed68450..7a8830a3 100644 --- a/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp +++ b/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_endpoint.cpp @@ -179,6 +179,7 @@ ipoib_endpt_create( p_endpt->dgid = *p_dgid; p_endpt->dlid = dlid; p_endpt->qpn = qpn; + p_endpt->p_ifc = p_port->p_adapter->p_ifc; IPOIB_EXIT( IPOIB_DBG_ENDPT ); return p_endpt; diff --git a/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp b/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp index 35a08174..a19b06af 100644 --- a/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp +++ b/trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp @@ -6808,7 +6808,6 @@ __endpt_mgr_add_bcast( } /* set reference to transport to be used while is not attached to the port */ p_endpt->is_mcast_listener = TRUE; - p_endpt->p_ifc = p_port->p_adapter->p_ifc; status = ipoib_endpt_set_mcast( p_endpt, p_port->ib_mgr.h_pd, p_port->port_num, @@ -7954,7 +7953,6 @@ __mcast_cb( } p_endpt = PARENT_STRUCT( p_item, ipoib_endpt_t, gid_item ); - p_endpt->p_ifc = p_port->p_adapter->p_ifc; /* Setup the endpoint for use. */ status = ipoib_endpt_set_mcast( p_endpt,