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

Function bnxt_need_agg_ring

dpdk/drivers/net/bnxt/bnxt_rxq.c:50–58  ·  view source on GitHub ↗

Determine whether the current configuration needs aggregation ring in HW. */

Source from the content-addressed store, hash-verified

48
49/* Determine whether the current configuration needs aggregation ring in HW. */
50int bnxt_need_agg_ring(struct rte_eth_dev *eth_dev)
51{
52 /* scattered_rx will be true if OFFLOAD_SCATTER is enabled,
53 * if LRO is enabled, or if the max packet len is greater than the
54 * mbuf data size. So AGG ring will be needed whenever scattered_rx
55 * is set.
56 */
57 return eth_dev->data->scattered_rx ? 1 : 0;
58}
59
60void bnxt_free_rxq_stats(struct bnxt_rx_queue *rxq)
61{

Callers 9

bnxt_free_hwrm_rx_ringFunction · 0.85
bnxt_init_rx_ring_structFunction · 0.85
bnxt_init_one_rx_ringFunction · 0.85
bnxt_alloc_ringsFunction · 0.85
bnxt_alloc_rx_agg_ringFunction · 0.85
bnxt_alloc_hwrm_rx_ringFunction · 0.85
bnxt_init_all_ringsFunction · 0.85
bnxt_alloc_hwrm_ringsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected