[PATCH] app/testpmd: reduce txonly multi-flow src_port range

Stephen Hemminger stephen at networkplumber.org
Thu Feb 26 22:35:07 CET 2026


On Thu, 26 Feb 2026 11:16:25 -0800
Long Li <longli at microsoft.com> wrote:

> Reduce the UDP source port OR-mask from 0xC0 to 0xF0, lowering
> unique high-byte values from 64 to 16 (16 unique ports per lcore).
> 
> Modern SmartNICs rarely need more than 16 queues to saturate RX,
> and excessive unique ports can exhaust hardware flow caching,
> degrading performance.
> 
> Unique source ports by lcore count:
>    1:  16,  2:  32,  4:  64,  8: 128,  16: 256
> 
> Signed-off-by: Long Li <longli at microsoft.com>
> ---

Make sense to make this less spread out.
I wonder if this should be a parameter to allow for testing different
spreads?


More information about the dev mailing list