[IPoIB] Fix MAC address generation for Mellanox GUIDs.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 24 Apr 2006 23:26:57 +0000 (23:26 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 24 Apr 2006 23:26:57 +0000 (23:26 +0000)
Signed-off-by: Yossi Leybovich (sleybo@mellanox.co.il)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@322 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_xfr_mgr.h

index 84d3c7c..b29fa41 100644 (file)
@@ -211,8 +211,8 @@ ipoib_mac_from_mlx_guid(
        /* Port guid is in network byte order.  OUI is in lower 3 bytes. */\r
        ASSERT( p_guid[0] == 0x00 && p_guid[1] == 0x02 && p_guid[2] == 0xc9 );\r
 \r
-       if( (port_guid & CL_HTON64( 0x000000ffff0000 )) !=\r
-               CL_HTON64(0x00000002000000))\r
+       if( (port_guid & CL_HTON64( 0x000000ffff000000 )) !=\r
+               CL_HTON64(0x0000000200000000))\r
        {\r
                return IB_INVALID_GUID;\r
        }\r