[IPoIB] Add debug output category for statistic queries/updates.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 18 Apr 2006 22:32:06 +0000 (22:32 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 18 Apr 2006 22:32:06 +0000 (22:32 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@315 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_adapter.c
ulp/ipoib/kernel/ipoib_debug.h

index 65f1d88..51ddd43 100644 (file)
@@ -954,7 +954,7 @@ ipoib_get_recv_stat(
 {\r
        uint64_t        stat;\r
 \r
-       IPOIB_ENTER( IPOIB_DBG_INFO );\r
+       IPOIB_ENTER( IPOIB_DBG_STAT );\r
 \r
        CL_ASSERT( p_adapter );\r
 \r
@@ -1017,11 +1017,11 @@ ipoib_get_recv_stat(
        else\r
        {\r
                *p_oid_info->p_bytes_used = 0;\r
-               IPOIB_EXIT( IPOIB_DBG_INFO );\r
+               IPOIB_EXIT( IPOIB_DBG_STAT );\r
                return NDIS_STATUS_INVALID_LENGTH;\r
        }\r
 \r
-       IPOIB_EXIT( IPOIB_DBG_INFO );\r
+       IPOIB_EXIT( IPOIB_DBG_STAT );\r
        return NDIS_STATUS_SUCCESS;\r
 }\r
 \r
@@ -1032,7 +1032,7 @@ ipoib_inc_recv_stat(
        IN              const   ip_stat_sel_t                           stat_sel,\r
        IN              const   size_t                                          bytes OPTIONAL )\r
 {\r
-       IPOIB_ENTER( IPOIB_DBG_INFO );\r
+       IPOIB_ENTER( IPOIB_DBG_STAT );\r
 \r
        cl_spinlock_acquire( &p_adapter->recv_stat_lock );\r
        switch( stat_sel )\r
@@ -1071,7 +1071,7 @@ ipoib_inc_recv_stat(
        }\r
        cl_spinlock_release( &p_adapter->recv_stat_lock );\r
 \r
-       IPOIB_EXIT( IPOIB_DBG_INFO );\r
+       IPOIB_EXIT( IPOIB_DBG_STAT );\r
 }\r
 \r
 NDIS_STATUS\r
@@ -1082,7 +1082,7 @@ ipoib_get_send_stat(
 {\r
        uint64_t        stat;\r
 \r
-       IPOIB_ENTER( IPOIB_DBG_INFO );\r
+       IPOIB_ENTER( IPOIB_DBG_STAT );\r
 \r
        CL_ASSERT( p_adapter );\r
 \r
@@ -1145,11 +1145,11 @@ ipoib_get_send_stat(
        else\r
        {\r
                *p_oid_info->p_bytes_used = 0;\r
-               IPOIB_EXIT( IPOIB_DBG_INFO );\r
+               IPOIB_EXIT( IPOIB_DBG_STAT );\r
                return NDIS_STATUS_INVALID_LENGTH;\r
        }\r
 \r
-       IPOIB_EXIT( IPOIB_DBG_INFO );\r
+       IPOIB_EXIT( IPOIB_DBG_STAT );\r
        return NDIS_STATUS_SUCCESS;\r
 }\r
 \r
@@ -1160,7 +1160,7 @@ ipoib_inc_send_stat(
        IN              const   ip_stat_sel_t                           stat_sel,\r
        IN              const   size_t                                          bytes OPTIONAL )\r
 {\r
-       IPOIB_ENTER( IPOIB_DBG_INFO );\r
+       IPOIB_ENTER( IPOIB_DBG_STAT );\r
 \r
        cl_spinlock_acquire( &p_adapter->send_stat_lock );\r
        switch( stat_sel )\r
@@ -1199,5 +1199,5 @@ ipoib_inc_send_stat(
        }\r
        cl_spinlock_release( &p_adapter->send_stat_lock );\r
 \r
-       IPOIB_EXIT( IPOIB_DBG_INFO );\r
+       IPOIB_EXIT( IPOIB_DBG_STAT );\r
 }\r
index 7b58334..d874e22 100644 (file)
@@ -60,6 +60,7 @@ extern uint32_t               g_ipoib_dbg_lvl;
 #define IPOIB_DBG_ALLOC        (1 << 8)\r
 #define IPOIB_DBG_OID  (1 << 9)\r
 #define IPOIB_DBG_IOCTL        (1 << 10)\r
+#define IPOIB_DBG_STAT (1 << 11)\r
 \r
 #define IPOIB_DBG_FUNC (1 << 28)       /* For function entry/exit */\r
 #define IPOIB_DBG_INFO (1 << 29)       /* For verbose information */\r