[IPoIB NDIS 6.0 CM] Added logging facilities. (mlnx 5211).
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Dec 2009 16:40:42 +0000 (16:40 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Dec 2009 16:40:42 +0000 (16:40 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2611 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp
ulp/ipoib_NDIS6_CM/kernel/ipoib_log.mc

index f67831b..53fc871 100644 (file)
@@ -1545,6 +1545,8 @@ SetAttributes(
        if (Status != NDIS_STATUS_SUCCESS)\r
        {\r
                //ETH_PRINT(TRACE_LEVEL_ERROR, ETH_INIT, "Set device registration failed Error=0x%x\n", Status);\r
+               NdisWriteErrorLogEntry( h_adapter,\r
+                       EVENT_IPOIB_START_UP_DEV_REG_ATTR, 1, Status );\r
                return Status;\r
        }\r
 \r
@@ -1553,6 +1555,8 @@ SetAttributes(
        if (Status != NDIS_STATUS_SUCCESS)\r
        {\r
                //ETH_PRINT(TRACE_LEVEL_ERROR, ETH_INIT, "Set adapter attributes failed Error=0x%x\n", Status);\r
+               NdisWriteErrorLogEntry( h_adapter,\r
+                       EVENT_IPOIB_START_UP_ADAPTER_REG_ATTR, 1, Status );\r
                return Status;\r
        }\r
 \r
@@ -1995,6 +1999,8 @@ if(cl_get_time_stamp_sec() < 30) {
                if( ib_status != IB_SUCCESS )\r
                {\r
                        //ASSERT(FALSE);\r
+                       NdisWriteErrorLogEntry( h_adapter,\r
+                               EVENT_IPOIB_START_UP_CREATE_ADAPTER, 1, ib_status );\r
                        IPOIB_PRINT_EXIT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,\r
                                ("ipoib_create_adapter returned status %d.\n", ib_status ) );\r
                        return NDIS_STATUS_FAILURE;\r
@@ -2029,7 +2035,7 @@ if(cl_get_time_stamp_sec() < 30) {
                {\r
                        //ASSERT(FALSE);\r
                        NdisWriteErrorLogEntry( h_adapter,\r
-                               NDIS_ERROR_CODE_HARDWARE_FAILURE, 0 );\r
+                               EVENT_IPOIB_START_UP_START_ADAPTER, 1, ib_status );\r
 #if  IPOIB_USE_DMA\r
                        NdisMDeregisterScatterGatherDma(p_adapter->NdisMiniportDmaHandle);\r
 #endif\r
@@ -2042,6 +2048,8 @@ if(cl_get_time_stamp_sec() < 30) {
                status = SetOffloadAttributes(p_adapter, h_adapter);\r
                if (status != NDIS_STATUS_SUCCESS)\r
                {\r
+                       NdisWriteErrorLogEntry( h_adapter,\r
+                               EVENT_IPOIB_START_UP_SET_OFFLOAD_ATTR, 1, status );\r
 #if  IPOIB_USE_DMA\r
                        NdisMDeregisterScatterGatherDma(p_adapter->NdisMiniportDmaHandle);\r
 #endif\r
index bb7d1c1..c10b20b 100644 (file)
@@ -323,7 +323,6 @@ SymbolicName=EVENT_IPOIB_CONNECTED_MODE_ERR
 Language=English\r
 %2: Connected Mode failed to initialize, disabled. Interface will use default UD QP transport.\r
 .\r
-\r
 MessageId=0x005D\r
 Facility=IPoIB\r
 Severity=Informational\r
@@ -332,3 +331,44 @@ Language=English
 %2: Connected Mode initialized and operational.\r
 .\r
 \r
+MessageId=0x005E\r
+Facility=IPoIB\r
+Severity=Error\r
+SymbolicName=EVENT_IPOIB_START_UP_DEV_REG_ATTR\r
+Language=English\r
+%2: SetDeviceRegistrationAttributes failed.\r
+.\r
+\r
+MessageId=0x005F\r
+Facility=IPoIB\r
+Severity=Error\r
+SymbolicName=EVENT_IPOIB_START_UP_ADAPTER_REG_ATTR\r
+Language=English\r
+%2: SetAdapterRegistrationAttributes failed.\r
+.\r
+\r
+MessageId=0x0060\r
+Facility=IPoIB\r
+Severity=Error\r
+SymbolicName=EVENT_IPOIB_START_UP_SET_OFFLOAD_ATTR\r
+Language=English\r
+%2: SetOffloadAttributes failed.\r
+.\r
+\r
+MessageId=0x0061\r
+Facility=IPoIB\r
+Severity=Error\r
+SymbolicName=EVENT_IPOIB_START_UP_CREATE_ADAPTER\r
+Language=English\r
+%2: ipoib_create_adapter failed.\r
+.\r
+\r
+MessageId=0x0062\r
+Facility=IPoIB\r
+Severity=Error\r
+SymbolicName=EVENT_IPOIB_START_UP_START_ADAPTER\r
+Language=English\r
+%2: ipoib_start_adapter failed.\r
+.\r
+\r
+\r