Print this page
10805 Fix for 10687 can be improved


  75 #define EIB_MSGS_CRIT           0x01
  76 #define EIB_MSGS_ERR            0x02
  77 #define EIB_MSGS_WARN           0x04
  78 #define EIB_MSGS_DEBUG          0x08
  79 #define EIB_MSGS_ARGS           0x10
  80 #define EIB_MSGS_PKT            0x20
  81 #define EIB_MSGS_VERBOSE        0x40
  82 #define EIB_MSGS_DEFAULT        (EIB_MSGS_CRIT | EIB_MSGS_ERR | EIB_MSGS_WARN)
  83 
  84 #define EIB_LOGSZ_DEFAULT       0x20000
  85 
  86 #define EIB_DPRINTF_CRIT        eib_dprintf_crit
  87 #define EIB_DPRINTF_ERR         eib_dprintf_err
  88 #define EIB_DPRINTF_WARN        eib_dprintf_warn
  89 #ifdef EIB_DEBUG
  90 #define EIB_DPRINTF_DEBUG       eib_dprintf_debug
  91 #define EIB_DPRINTF_ARGS        eib_dprintf_args
  92 #define EIB_DPRINTF_PKT         eib_dprintf_pkt
  93 #define EIB_DPRINTF_VERBOSE     eib_dprintf_verbose
  94 #else
  95 #define EIB_DPRINTF_DEBUG(...)
  96 #define EIB_DPRINTF_ARGS(...)
  97 #define EIB_DPRINTF_PKT(...)
  98 #define EIB_DPRINTF_VERBOSE(...)
  99 #endif
 100 
 101 /*
 102  *  EoIB threads to provide various services
 103  */
 104 #define EIB_EVENTS_HDLR         "eib_events_handler"
 105 #define EIB_RWQES_REFILLER      "eib_rwqes_refiller"
 106 #define EIB_VNIC_CREATOR        "eib_vnic_creator"
 107 #define EIB_TXWQES_MONITOR      "eib_txwqe_monitor"
 108 #define EIB_LSOBUFS_MONITOR     "eib_lsobufs_monitor"
 109 
 110 /*
 111  * Macro for finding the least significant bit set in a 64-bit unsigned int
 112  */
 113 #define EIB_FIND_LSB_SET(val64) eib_setbit_mod67[((-(val64) & (val64)) % 67)]
 114 
 115 /*
 116  * LSO buffers
 117  *
 118  * Under normal circumstances we should never need to use any buffer




  75 #define EIB_MSGS_CRIT           0x01
  76 #define EIB_MSGS_ERR            0x02
  77 #define EIB_MSGS_WARN           0x04
  78 #define EIB_MSGS_DEBUG          0x08
  79 #define EIB_MSGS_ARGS           0x10
  80 #define EIB_MSGS_PKT            0x20
  81 #define EIB_MSGS_VERBOSE        0x40
  82 #define EIB_MSGS_DEFAULT        (EIB_MSGS_CRIT | EIB_MSGS_ERR | EIB_MSGS_WARN)
  83 
  84 #define EIB_LOGSZ_DEFAULT       0x20000
  85 
  86 #define EIB_DPRINTF_CRIT        eib_dprintf_crit
  87 #define EIB_DPRINTF_ERR         eib_dprintf_err
  88 #define EIB_DPRINTF_WARN        eib_dprintf_warn
  89 #ifdef EIB_DEBUG
  90 #define EIB_DPRINTF_DEBUG       eib_dprintf_debug
  91 #define EIB_DPRINTF_ARGS        eib_dprintf_args
  92 #define EIB_DPRINTF_PKT         eib_dprintf_pkt
  93 #define EIB_DPRINTF_VERBOSE     eib_dprintf_verbose
  94 #else
  95 #define EIB_DPRINTF_DEBUG(...)  (void)(0)
  96 #define EIB_DPRINTF_ARGS(...)   (void)(0)
  97 #define EIB_DPRINTF_PKT(...)    (void)(0)
  98 #define EIB_DPRINTF_VERBOSE(...) (void)(0)
  99 #endif
 100 
 101 /*
 102  *  EoIB threads to provide various services
 103  */
 104 #define EIB_EVENTS_HDLR         "eib_events_handler"
 105 #define EIB_RWQES_REFILLER      "eib_rwqes_refiller"
 106 #define EIB_VNIC_CREATOR        "eib_vnic_creator"
 107 #define EIB_TXWQES_MONITOR      "eib_txwqe_monitor"
 108 #define EIB_LSOBUFS_MONITOR     "eib_lsobufs_monitor"
 109 
 110 /*
 111  * Macro for finding the least significant bit set in a 64-bit unsigned int
 112  */
 113 #define EIB_FIND_LSB_SET(val64) eib_setbit_mod67[((-(val64) & (val64)) % 67)]
 114 
 115 /*
 116  * LSO buffers
 117  *
 118  * Under normal circumstances we should never need to use any buffer