[PATCH v2] app/test: fix PMD perf test on devices with no socket ID

David Marchand david.marchand at redhat.com
Mon Oct 24 13:37:26 CEST 2022


On Mon, Oct 24, 2022 at 9:12 AM Olivier Matz <olivier.matz at 6wind.com> wrote:
>
> If the socket ID of a device is unknown, rte_eth_dev_socket_id(portid)
> now returns -1 instead of 0 since commit 7dcd73e37965 ("drivers/bus: set
> device NUMA node to unknown by default").
>
> This change breaks the pmd_perf test on environment where the device
> socket ID is unknown. The test fails with the following error, because
> it does not find a lcore on socket -1:
>
> > No avail lcore to run test
>
> Take the new behavior in account in the pmd_perf test: in this
> environment, the test can now run on any lcore, and not only those from
> socket 0 (this was the old behavior).
>
> Bugzilla ID: 1105
> Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default")
>
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>

>From the bugzilla comments:
Tested-by: Lingli Chen <linglix.chen at intel.com>

Reviewed-by: David Marchand <david.marchand at redhat.com>

Applied, thanks.

-- 
David Marchand



More information about the dev mailing list