<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Index:
Q:/openib/trunk/ulp/ipoib/kernel/ipoib_xfr_mgr.h<BR>===================================================================<BR>---
Q:/openib/trunk/ulp/ipoib/kernel/ipoib_xfr_mgr.h (revision 1301)<BR>+++
Q:/openib/trunk/ulp/ipoib/kernel/ipoib_xfr_mgr.h (working copy)<BR>@@
-207,21 +207,24 @@<BR> {<BR> const uint8_t *p_guid = (const
uint8_t*)&port_guid;<BR> uint32_t low24;<BR>+ net16_t guid_middle;<BR> <BR> /*
Port guid is in network byte order. OUI is in lower 3 bytes.
*/<BR> ASSERT( p_guid[0] == 0x00 && p_guid[1] == 0x02
&& p_guid[2] == 0xc9 );<BR> <BR>- if( (port_guid &
CL_HTON64( 0x000000ffff000000 ))
!=<BR>- CL_HTON64(0x0000000200000000))<BR>- {<BR>+ guid_middle
= (net16_t)((port_guid & CL_HTON64( 0x000000ffff000000 ))
>>24);<BR>+<BR>+ if (guid_middle == 2)
{<BR>+ p_mac_addr->addr[2] = 0xc9;<BR>+ } else if
(guid_middle == 3) {<BR>+ p_mac_addr->addr[2] =
0xca;<BR>+ } else {<BR> return
IB_INVALID_GUID;<BR> }<BR>-<BR> low24 =
((uint32_t)cl_ntoh64( port_guid ) &
0x00FFFFFF);<BR> <BR> p_mac_addr->addr[0] =
p_guid[0];<BR> p_mac_addr->addr[1] =
p_guid[1];<BR>- p_mac_addr->addr[2] =
p_guid[2];<BR> p_mac_addr->addr[3] = (uint8_t)(low24 >>
16);<BR> p_mac_addr->addr[4] = (uint8_t)(low24 >>
8);<BR> p_mac_addr->addr[5] =
(uint8_t)low24;<BR></FONT></DIV></BODY></HTML>