bus/pci: fix unknown NUMA node value on Windows
authorPallavi Kadam <pallavi.kadam@intel.com>
Wed, 22 Sep 2021 21:19:06 +0000 (14:19 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 23 Sep 2021 17:09:26 +0000 (19:09 +0200)
commitbf7cf1f947bd18aa1b9673ea4188a5802741d05a
treef1366c1008e57ff021cc4ea7caa92e4f80cdb807
parentd2671e642a8ebd4d0328835c0ba1bc020427cc77
bus/pci: fix unknown NUMA node value on Windows

On older CPUs, currently numa_node returns value only for socket 0.
Instead, application should be able to make correct decision and
also to keep consistent with the Linux code,
replace the return value to -1.

Fixes: ac7c98d04f2c ("bus/pci: ignore missing NUMA node on Windows")
Cc: stable@dpdk.org
Reported-by: Vipin Varghese <vipin.varghese@intel.com>
Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
drivers/bus/pci/windows/pci.c