]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commit
dpdk: Convert dpdk-lcore-mask to DPDK lcore args.
authorKevin Traynor <ktraynor@redhat.com>
Thu, 11 Sep 2025 13:33:13 +0000 (14:33 +0100)
committerKevin Traynor <ktraynor@redhat.com>
Thu, 18 Sep 2025 11:52:38 +0000 (12:52 +0100)
commitcd2ff530d740cdc1808437caa32bd66b01fa517a
treec7a86b49ad9c5a72a48cd59ba394161f00953e88
parent7bf5a8b835d02ebaf863350763bd5be9d0f34c65
dpdk: Convert dpdk-lcore-mask to DPDK lcore args.

OVS currently uses other_config:dpdk-lcore-mask <coremask> directly
in DPDK rte_eal_init() with '-c <coremask>' argument.

'-c' argument is now deprecated from DPDK and will be removed in
DPDK 25.11, so OVS will no longer be able to use the '-c <coremask>'
argument.

Convert dpdk-lcore-mask core mask to a core list that can be used with
'--lcores' and add some tests.

The core list is validated to prevent invalid cores being passed to
DPDK rte_eal_init().

Using the '--lcores' argument also adds compatibility for using a core
in the core mask that is greater than the max lcore, similar to commit
fe53b478f86e ("dpdk: Fix main lcore on systems with many cores.")

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/dpdk.c
tests/ovs-macros.at
tests/pmd.at
tests/system-dpdk.at