This patch adds support for another set of HP GUIDs.

Signed-off-by: Fab Tillier <[EMAIL PROTECTED]>

--- \dev\openib\gen1\branches\WOF2-0\trunk\ulp\ipoib\kernel\ipoib_xfr_mgr.h     
Tue Sep 30 11:13:33 2008
+++ ulp\ipoib\kernel\ipoib_xfr_mgr.h    Tue Sep 30 11:15:15 2008
@@ -390,7 +390,7 @@ ipoib_mac_from_guid(
                OUT                     mac_addr_t* const                       
p_mac_addr
                )
 {
-       static const guid_default_mask = 0xE7; //==0b 11100111
+       static const uint32_t guid_default_mask = 0xE7; //==0b 11100111
        ib_api_status_t status = IB_INVALID_GUID;
        const uint8_t   *p_guid = (const uint8_t*)&port_guid;
        uint32_t                laa;
@@ -427,7 +427,8 @@ ipoib_mac_from_guid(
                {
                        status = ipoib_mac_from_sst_guid( port_guid, p_mac_addr 
);
                }
-               else if( p_guid[1] == 0x1a && p_guid[2] == 0x4b )
+               else if( p_guid[1] == 0x1a && p_guid[2] == 0x4b ||
+                                p_guid[1] == 0x17 && p_guid[2] == 0x08 )
                {
                        //HP GUID
                        status =ipoib_mac_from_guid_mask( p_guid, 
guid_default_mask, p_mac_addr );

Attachment: ipoib_mac.3.patch
Description: ipoib_mac.3.patch

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to