[ipoib] Return the link speed even if the link is down. (mlnx: 3304)
[mirror/winof/.git] / ulp / ipoib / kernel / ipoib_adapter.c
index 5301419..d84574f 100644 (file)
@@ -306,7 +306,7 @@ adapter_construct(
        cl_perf_construct( &p_adapter->perf );\r
 \r
        p_adapter->state = IB_PNP_PORT_ADD;\r
-       p_adapter->rate = FOUR_X_IN_100BPS;\r
+       p_adapter->port_rate = FOUR_X_IN_100BPS;\r
 }\r
 \r
 \r
@@ -1065,7 +1065,7 @@ ipoib_set_rate(
                rate = 0;\r
        }\r
 \r
-       p_adapter->rate = rate;\r
+       p_adapter->port_rate = rate;\r
        IPOIB_EXIT( IPOIB_DBG_INIT );\r
 }\r
 \r
@@ -1124,8 +1124,8 @@ ipoib_set_active(
                 */\r
                IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT, ("Link UP!\n") );\r
                NdisWriteErrorLogEntry( p_adapter->h_adapter,\r
-                       EVENT_IPOIB_PORT_UP + (p_adapter->rate/ONE_X_IN_100BPS),\r
-                       1, p_adapter->rate );\r
+                       EVENT_IPOIB_PORT_UP + (p_adapter->port_rate/ONE_X_IN_100BPS),\r
+                       1, p_adapter->port_rate );\r
 \r
                if( !p_adapter->reset )\r
                {\r