MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_init_dflt_coal

Function bnxt_init_dflt_coal

dpdk/drivers/net/bnxt/bnxt_ring.c:332–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332static void bnxt_init_dflt_coal(struct bnxt_coal *coal)
333{
334 /* Tick values in micro seconds.
335 * 1 coal_buf x bufs_per_record = 1 completion record.
336 */
337 coal->num_cmpl_aggr_int = BNXT_NUM_CMPL_AGGR_INT;
338 /* This is a 6-bit value and must not be 0, or we'll get non stop IRQ */
339 coal->num_cmpl_dma_aggr = BNXT_NUM_CMPL_DMA_AGGR;
340 /* This is a 6-bit value and must not be 0, or we'll get non stop IRQ */
341 coal->num_cmpl_dma_aggr_during_int = BNXT_NUM_CMPL_DMA_AGGR_DURING_INT;
342 coal->int_lat_tmr_max = BNXT_INT_LAT_TMR_MAX;
343 /* min timer set to 1/2 of interrupt timer */
344 coal->int_lat_tmr_min = BNXT_INT_LAT_TMR_MIN;
345 /* buf timer set to 1/4 of interrupt timer */
346 coal->cmpl_aggr_dma_tmr = BNXT_CMPL_AGGR_DMA_TMR;
347 coal->cmpl_aggr_dma_tmr_during_int = BNXT_CMPL_AGGR_DMA_TMR_DURING_INT;
348}
349
350static void bnxt_set_db(struct bnxt *bp,
351 struct bnxt_db_info *db,

Callers 3

bnxt_alloc_hwrm_rx_ringFunction · 0.85
bnxt_alloc_hwrm_ringsFunction · 0.85
bnxt_alloc_hwrm_tx_ringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected