[PATCH v2 1/2] config: add mbuf burst size configuration

Thomas Monjalon thomas at monjalon.net
Wed Jun 3 23:04:33 CEST 2026


16/04/2026 23:11, pbhagavatula at marvell.com:
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
> 
> Add configurable mbuf burst size macros:
> - RTE_MBUF_BURST_SIZE_THROUGHPUT: optimized for throughput (default 32)
> - RTE_MBUF_BURST_SIZE_LATENCY: optimized for low latency (default 4)
> - RTE_MBUF_BURST_SIZE_DEFAULT: references the selected profile
> 
> Add meson option 'mbuf_burst_size_default' to select between
> 'throughput' (default) and 'latency' profiles.
> 
> Platform-specific configurations can override
> RTE_MBUF_BURST_SIZE_THROUGHPUT.
> Set to 64 for CN10K which benefits from larger bursts.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>

If it would depend only on the HW, I would agree with this config.
But it's not, as said already with previous versions by others.
It is really an application configuration.
I think such config is misleading,
and useful only to demonstrate some HW with some specific demo apps.

Can we have a constant exported as part of the API
to give a tip about the capability of the hardware?
Then we could have a smarter decision in the apps.




More information about the dev mailing list