On Mon, Oct 19, 2026 at 04:57:48PM +0800, Chengwen Feng wrote:
> Introduce a stride/step syntax ('-l start-end:step') to the EAL
> corelist parser implemented within the argparse library.
> 
> On modern multi-core platforms, especially ARM architectures (such
> as Kunpeng) logical sibling cores are frequently laid out contiguously
> (e.g., physical core 0 maps to logical cores 0 and 1). When deploying
> high-performance DPDK data planes, pinning worker threads to adjacent
> sibling cores introduces Heavy L1/L2 cache contention and drastically
> degrades overall throughput.
> 
> Previously, users had to explicitly expand core lists via commas
> (e.g., "-l 0,2,4,6...126") in orchestration scripts to skip
> hyperthreads, which is error-prone and hurts maintainability.
> 
> This patch introduces the range step, so we could use "-l 0-126:2" in
> the same case.
> 
> Signed-off-by: Chengwen Feng <[email protected]>
> ---
> v2: add release note and more testcases
> ---
>  app/test/test_argparse.c               | 123 +++++++++++++++++++++++++
>  doc/guides/prog_guide/argparse_lib.rst |   2 +
>  doc/guides/rel_notes/release_26_11.rst |   6 ++
>  lib/argparse/rte_argparse.c            |  53 ++++++++---
>  4 files changed, 172 insertions(+), 12 deletions(-)
> 
Sees a good addition to the library API.

Acked-by: Bruce Richardson <[email protected]>

Reply via email to