Use compiler intrinsics and Ndis routines instead of complib routines for performance & debug.
cl_memclr --> NdisZeroMemory cl_memcpy --> NdisMoveMemory cl_memcmp --> memcmp cl_memset --> memset signed-off-by: stan smith <[email protected]> --- a/ulp/ipoib_ndis6_cm/kernel/ipoib_adapter.cpp Fri Dec 10 10:50:47 2010 +++ B/ulp/ipoib_NDIS6_CM/kernel/ipoib_adapter.cpp Tue Dec 28 11:01:56 2010 @@ -463,7 +463,7 @@ p_adapter->registering = TRUE; /* Register for PNP events. */ - cl_memclr( &pnp_req, sizeof(pnp_req) ); + NdisZeroMemory( &pnp_req, sizeof(pnp_req) ); pnp_req.pnp_class = IB_PNP_PORT | flags; /* * Context is the cl_obj of the adapter to allow passing cl_obj_deref @@ -962,7 +962,7 @@ { for( j = 0; j < num_macs; j++ ) { - if( !cl_memcmp( &p_adapter->mcast_array[i], &p_mac_array[j], + if( !memcmp( &p_adapter->mcast_array[i], &p_mac_array[j], sizeof(mac_addr_t) ) ) { break; @@ -979,7 +979,7 @@ { for( j = 0; j < p_adapter->mcast_array_size; j++ ) { - if( !cl_memcmp( &p_adapter->mcast_array[j], &p_mac_array[i], + if( !memcmp( &p_adapter->mcast_array[j], &p_mac_array[i], sizeof(mac_addr_t) ) ) { break;
ipoib_adapter.cpp.patch
Description: ipoib_adapter.cpp.patch
_______________________________________________ ofw mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
