Print this page
XXXX introduce drv_sectohz


 128 #define XGELL_TX_LEVEL_CHECK    3
 129 #define XGELL_MAX_RING_DEFAULT  8
 130 #define XGELL_MAX_FIFO_DEFAULT  1
 131 
 132 /* Control driver to copy or DMA inbound/outbound packets */
 133 #if defined(__sparc)
 134 #define XGELL_RX_DMA_LOWAT                      256
 135 #define XGELL_TX_DMA_LOWAT                      512
 136 #else
 137 #define XGELL_RX_DMA_LOWAT                      256
 138 #define XGELL_TX_DMA_LOWAT                      128
 139 #endif
 140 
 141 /*
 142  * Try to collapse up to XGELL_RX_PKT_BURST packets into single mblk
 143  * sequence before mac_rx() is called.
 144  */
 145 #define XGELL_RX_PKT_BURST                      32
 146 
 147 /* About 1s */
 148 #define XGE_DEV_POLL_TICKS                      drv_usectohz(1000000)
 149 
 150 #define XGELL_LSO_MAXLEN                        65535
 151 #define XGELL_CONF_ENABLE_BY_DEFAULT            1
 152 #define XGELL_CONF_DISABLE_BY_DEFAULT           0
 153 
 154 /* LRO configuration */
 155 #define XGE_HAL_DEFAULT_LRO_SG_SIZE             2 /* <=2 LRO fix not required */
 156 #define XGE_HAL_DEFAULT_LRO_FRM_LEN             65535
 157 
 158 /*
 159  * Default values for tunables used in HAL. Please refer to xgehal-config.h
 160  * for more details.
 161  */
 162 #define XGE_HAL_DEFAULT_USE_HARDCODE            -1
 163 
 164 /* Bimodal adaptive schema defaults - ENABLED */
 165 #define XGE_HAL_DEFAULT_BIMODAL_INTERRUPTS      -1
 166 #define XGE_HAL_DEFAULT_BIMODAL_TIMER_LO_US     24
 167 #define XGE_HAL_DEFAULT_BIMODAL_TIMER_HI_US     256
 168 




 128 #define XGELL_TX_LEVEL_CHECK    3
 129 #define XGELL_MAX_RING_DEFAULT  8
 130 #define XGELL_MAX_FIFO_DEFAULT  1
 131 
 132 /* Control driver to copy or DMA inbound/outbound packets */
 133 #if defined(__sparc)
 134 #define XGELL_RX_DMA_LOWAT                      256
 135 #define XGELL_TX_DMA_LOWAT                      512
 136 #else
 137 #define XGELL_RX_DMA_LOWAT                      256
 138 #define XGELL_TX_DMA_LOWAT                      128
 139 #endif
 140 
 141 /*
 142  * Try to collapse up to XGELL_RX_PKT_BURST packets into single mblk
 143  * sequence before mac_rx() is called.
 144  */
 145 #define XGELL_RX_PKT_BURST                      32
 146 
 147 /* About 1s */
 148 #define XGE_DEV_POLL_TICKS                      drv_sectohz(1)
 149 
 150 #define XGELL_LSO_MAXLEN                        65535
 151 #define XGELL_CONF_ENABLE_BY_DEFAULT            1
 152 #define XGELL_CONF_DISABLE_BY_DEFAULT           0
 153 
 154 /* LRO configuration */
 155 #define XGE_HAL_DEFAULT_LRO_SG_SIZE             2 /* <=2 LRO fix not required */
 156 #define XGE_HAL_DEFAULT_LRO_FRM_LEN             65535
 157 
 158 /*
 159  * Default values for tunables used in HAL. Please refer to xgehal-config.h
 160  * for more details.
 161  */
 162 #define XGE_HAL_DEFAULT_USE_HARDCODE            -1
 163 
 164 /* Bimodal adaptive schema defaults - ENABLED */
 165 #define XGE_HAL_DEFAULT_BIMODAL_INTERRUPTS      -1
 166 #define XGE_HAL_DEFAULT_BIMODAL_TIMER_LO_US     24
 167 #define XGE_HAL_DEFAULT_BIMODAL_TIMER_HI_US     256
 168