Print this page
10805 Fix for 10687 can be improved


  58  * Debug messages
  59  */
  60 #define ENX_MSGS_CRIT           0x01
  61 #define ENX_MSGS_ERR            0x02
  62 #define ENX_MSGS_WARN           0x04
  63 #define ENX_MSGS_DEBUG          0x08
  64 #define ENX_MSGS_ARGS           0x10
  65 #define ENX_MSGS_VERBOSE        0x20
  66 #define ENX_MSGS_DEFAULT        (ENX_MSGS_CRIT | ENX_MSGS_ERR | ENX_MSGS_WARN)
  67 
  68 #define ENX_LOGSZ_DEFAULT       0x20000
  69 
  70 #define ENX_DPRINTF_CRIT        eibnx_dprintf_crit
  71 #define ENX_DPRINTF_ERR         eibnx_dprintf_err
  72 #define ENX_DPRINTF_WARN        eibnx_dprintf_warn
  73 #ifdef ENX_DEBUG
  74 #define ENX_DPRINTF_DEBUG       eibnx_dprintf_debug
  75 #define ENX_DPRINTF_ARGS        eibnx_dprintf_args
  76 #define ENX_DPRINTF_VERBOSE     eibnx_dprintf_verbose
  77 #else
  78 #define ENX_DPRINTF_DEBUG(...)
  79 #define ENX_DPRINTF_ARGS(...)
  80 #define ENX_DPRINTF_VERBOSE(...)
  81 #endif
  82 
  83 /*
  84  *  EoIB Nexus service threads
  85  */
  86 #define ENX_PORT_MONITOR        "eibnx_port_%d_monitor"
  87 #define ENX_NODE_CREATOR        "eibnx_node_creator"
  88 
  89 /*
  90  * Default period (us) for unicast solicitations to discovered gateways.
  91  * EoIB specification requires that hosts send solicitation atleast every
  92  * 4 * GW_ADV_PERIOD.
  93  */
  94 #define ENX_DFL_SOLICIT_PERIOD_USEC     32000000
  95 
  96 /*
  97  * Portinfo list per HCA
  98  */
  99 typedef struct eibnx_port_s {
 100         struct eibnx_port_s     *po_next;




  58  * Debug messages
  59  */
  60 #define ENX_MSGS_CRIT           0x01
  61 #define ENX_MSGS_ERR            0x02
  62 #define ENX_MSGS_WARN           0x04
  63 #define ENX_MSGS_DEBUG          0x08
  64 #define ENX_MSGS_ARGS           0x10
  65 #define ENX_MSGS_VERBOSE        0x20
  66 #define ENX_MSGS_DEFAULT        (ENX_MSGS_CRIT | ENX_MSGS_ERR | ENX_MSGS_WARN)
  67 
  68 #define ENX_LOGSZ_DEFAULT       0x20000
  69 
  70 #define ENX_DPRINTF_CRIT        eibnx_dprintf_crit
  71 #define ENX_DPRINTF_ERR         eibnx_dprintf_err
  72 #define ENX_DPRINTF_WARN        eibnx_dprintf_warn
  73 #ifdef ENX_DEBUG
  74 #define ENX_DPRINTF_DEBUG       eibnx_dprintf_debug
  75 #define ENX_DPRINTF_ARGS        eibnx_dprintf_args
  76 #define ENX_DPRINTF_VERBOSE     eibnx_dprintf_verbose
  77 #else
  78 #define ENX_DPRINTF_DEBUG(...)  (void)(0)
  79 #define ENX_DPRINTF_ARGS(...)   (void)(0)
  80 #define ENX_DPRINTF_VERBOSE(...) (void)(0)
  81 #endif
  82 
  83 /*
  84  *  EoIB Nexus service threads
  85  */
  86 #define ENX_PORT_MONITOR        "eibnx_port_%d_monitor"
  87 #define ENX_NODE_CREATOR        "eibnx_node_creator"
  88 
  89 /*
  90  * Default period (us) for unicast solicitations to discovered gateways.
  91  * EoIB specification requires that hosts send solicitation atleast every
  92  * 4 * GW_ADV_PERIOD.
  93  */
  94 #define ENX_DFL_SOLICIT_PERIOD_USEC     32000000
  95 
  96 /*
  97  * Portinfo list per HCA
  98  */
  99 typedef struct eibnx_port_s {
 100         struct eibnx_port_s     *po_next;