bus/pci: fix unknown NUMA node value on Windows
authorPallavi Kadam <pallavi.kadam@intel.com>
Mon, 27 Sep 2021 18:43:22 +0000 (11:43 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 30 Sep 2021 16:30:27 +0000 (18:30 +0200)
commit3c6e581025109926c166bbd2f7ea678f07c3bbce
tree7ab722ed8d8631d1f7042e9ac0f31c0af137cf1e
parentf0e18cb4a872d2f0cc4ba51557c837b81c8af024
bus/pci: fix unknown NUMA node value on Windows

Based on the rte_eth_dev_socket_id() documentation,
set the default numa_node to -1. When the API is unsuccessful,
set numa_node to 0.
This change more correctly resembles the Linux code.

Fixes: bf7cf1f947bd ("bus/pci: fix unknown NUMA node value 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: Ranjit Menon <ranjit.menon@intel.com>
drivers/bus/pci/windows/pci.c