Codebase list ibutils / debian/1.5.7-2 debian / patches / git-05a9d1a.patch
debian/1.5.7-2

Tree @debian/1.5.7-2 (Download .tar.gz)

git-05a9d1a.patch @debian/1.5.7-2

4e4d916
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
commit 05a9d1a0c235410cc9d8fcb00e1827697bc5c9ac
Author: Aviad Yehezkel <aviadye@mellanox.co.il>
Date:   Thu Jul 28 11:39:55 2011 +0300

    Fixed compilation problem becuase set_link_speed_sup function not exists anymore.
    
    This function not exists anymore because the field is RO.
    
    Signed-off-by: Aviad Yehezkel <aviadye@mellanox.co.il>
    Signed-off-by: Yevgeny Kliteynik <kliteyn@dev.mellanox.co.il>

diff --git a/ibmgtsim/src/sma.cpp b/ibmgtsim/src/sma.cpp
index 58c8d7d..be9f90c 100644
--- a/ibmgtsim/src/sma.cpp
+++ b/ibmgtsim/src/sma.cpp
@@ -490,7 +490,7 @@ void IBMSSma::initPortInfo()
       }
       // LinkSpeedSupported and PortState
       ib_port_info_set_port_state( &tmpPortInfo, IB_LINK_INIT);
-      ib_port_info_set_link_speed_sup( linkSpeed, &tmpPortInfo);
+      tmpPortInfo.state_info1 |= (tmpPortInfo.state_info1 & 0x0f) | (linkSpeed << 4);
       // LinkSpeedEnabled and LinkSpeedActive
       tmpPortInfo.link_speed = linkSpeed | (pNodePortData->speed << 4);