[ofw] ***SPAM*** [PATCH 3/4] Clean up MAC generation, add support for HP GUIDs

Fab Tillier ftillier at windows.microsoft.com
Tue Sep 30 11:21:58 PDT 2008


This patch adds support for another set of HP GUIDs.

Signed-off-by: Fab Tillier <ftillier at microsoft.com>

--- \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 );
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_mac.3.patch
Type: application/octet-stream
Size: 877 bytes
Desc: ipoib_mac.3.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080930/dae2762e/attachment.obj>


More information about the ofw mailing list