[ofw] [PATCH] use compiler intrinsics instead of complib 5 of 5
Smith, Stan
stan.smith at intel.com
Tue Dec 28 15:08:03 PST 2010
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 <stan.smith at intel.com>
--- A/ulp/ipoib_ndis6_cm/kernel/ipoib_xfr_mgr.h Tue Dec 28 10:10:25 2010
+++ B/ulp/ipoib_NDIS6_CM/kernel/ipoib_xfr_mgr.h Tue Dec 28 10:55:58 2010
@@ -535,7 +535,7 @@
{
static const uint8_t VOLTAIRE_GUID_PREFIX[] = {0, 0x08, 0xf1, 0, 0x1};
- return !cl_memcmp( &p_gid->unicast.interface_id, VOLTAIRE_GUID_PREFIX,
+ return !memcmp( &p_gid->unicast.interface_id, VOLTAIRE_GUID_PREFIX,
sizeof(VOLTAIRE_GUID_PREFIX) );
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_xfr_mgr.h.patch1
Type: application/octet-stream
Size: 438 bytes
Desc: ipoib_xfr_mgr.h.patch1
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20101228/a83de920/attachment.obj>
More information about the ofw
mailing list