net/ice: remove bulk alloc compile option
PATCH 1/1 net/ice: remove bulk alloc compile option
Remove CONFIG_RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC with below consideration:
1. a default Rx path can always be selected by setting a proper rx_free_thresh value at runtime, see ice_check_rx_burst_bulk_alloc_preconditions.
2. its not a big deal to always reserve more space for desc ring. "ring_size = (uint16_t)(rxq->nb_rx_desc + ICE_RX_MAX_BURST);"
3. Fixes a potential invalid memory access in ice_reset_rx_queue. if CONFIG_RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC is turned on while ice_check_rx_burst_bulk_alloc_preconditions return fail. below code will have problem.
for (i = 0; i < ICE_RX_MAX_BURST; ++i) rxq->sw_ring[rxq->nb_rx_desc + i].mbuf = &rxq->fake_mbuf;
Fixes 50370662b727 ("net/ice: support device and queue ops")
Signed-off-by Qi Zhang <[email protected]>
--- config/common_base | 1 - drivers/net/ice/ice_rxtx.c | 64 ++++++++++------------------------------------ 2 files changed, 13 insertions(+), 52 deletions(-)
config/common_base +0 -1
@@ -337,7 +337,6 @@ CONFIG_RTE_LIBRTE_ICE_PMD=y CONFIG_RTE_LIBRTE_ICE_DEBUG_RX=n CONFIG_RTE_LIBRTE_ICE_DEBUG_TX=n CONFIG_RTE_LIBRTE_ICE_DEBUG_TX_FREE=n -CONFIG_RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC=y CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=n # Compile burst-oriented IAVF PMD driver
drivers/net/ice/ice_rxtx.c +13 -51
151 lines not on this page · raw message
Signature · 1 line
2.13.6