Print this page
6064 ixgbe needs X550 support

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ixgbe/ixgbe_debug.h
          +++ new/usr/src/uts/common/io/ixgbe/ixgbe_debug.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * information: Portions Copyright [yyyy] [name of copyright owner]
  20   20   *
  21   21   * CDDL HEADER END
  22   22   */
  23   23  
  24   24  /*
  25   25   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
  27   27   */
  28   28  
       29 +/*
       30 + * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
       31 + */
       32 +
  29   33  #ifndef _IXGBE_DEBUG_H
  30   34  #define _IXGBE_DEBUG_H
  31   35  
  32   36  #ifdef __cplusplus
  33   37  extern "C" {
  34   38  #endif
  35   39  
  36   40  
  37   41  #ifdef DEBUG
  38   42  #define IXGBE_DEBUG
↓ open down ↓ 44 lines elided ↑ open up ↑
  83   87          IXGBE_DEBUGLOG_0(NULL, S)
  84   88  #define DEBUGOUT1(S, A) \
  85   89          IXGBE_DEBUGLOG_1(NULL, S, A)
  86   90  #define DEBUGOUT2(S, A, B)      \
  87   91          IXGBE_DEBUGLOG_2(NULL, S, A, B)
  88   92  #define DEBUGOUT3(S, A, B, C)   \
  89   93          IXGBE_DEBUGLOG_3(NULL, S, A, B, C)
  90   94  #define DEBUGOUT6(S, A, B, C, D, E, F)  \
  91   95          IXGBE_DEBUGLOG_6(NULL, S, A, B, C, D, E, F)
  92   96  
       97 +#define ERROR_REPORT1(S, A)             DEBUGOUT1(S, A)
       98 +#define ERROR_REPORT2(S, A, B)          DEBUGOUT2(S, A, B)
       99 +#define ERROR_REPORT3(S, A, B, C)       DEBUGOUT3(S, A, B, C)
      100 +
  93  101  /*
  94  102   * DEBUGFUNC() is used to print the function call information, however since
  95      - * Dtrace in Solaris can be used to trace function calls, this function is
  96      - * not useful in Solaris, and DEBUGFUNC() can spam a large number of
      103 + * Dtrace in illumos can be used to trace function calls, this function is
      104 + * not useful in illumos, and DEBUGFUNC() can spam a large number of
  97  105   * function call system logs (see CR6918426). We sould eliminate
  98  106   * DEBUGFUNC(), but since DEBUGFUNC() is used by the shared code
  99  107   * (maintained by Intel) which is used and shared by ixgbe drivers in
 100      - * different OSes, we can not remove it, so in Solaris just simply define
      108 + * different OSes, we can not remove it, so in illumos just simply define
 101  109   * it as blank.
 102  110   */
 103  111  #define DEBUGFUNC(F)
 104  112  
 105  113  #else
 106  114  
 107  115  #define DEBUGOUT(S)
 108  116  #define DEBUGOUT1(S, A)
 109  117  #define DEBUGOUT2(S, A, B)
 110  118  #define DEBUGOUT3(S, A, B, C)
 111  119  #define DEBUGOUT6(S, A, B, C, D, E, F)
 112  120  
      121 +#define ERROR_REPORT1(S, A)
      122 +#define ERROR_REPORT2(S, A, B)
      123 +#define ERROR_REPORT3(S, A, B, C)
      124 +
 113  125  #define DEBUGFUNC(F)
 114  126  
 115  127  #endif  /* IXGBE_DEBUG */
 116  128  
 117  129  extern void ixgbe_log(void *, const char *, ...);
 118  130  
 119  131  #ifdef __cplusplus
 120  132  }
 121  133  #endif
 122  134  
 123  135  #endif  /* _IXGBE_DEBUG_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX