pci: move NUMA node check from scan to probe
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Fri, 21 Jul 2017 09:11:19 +0000 (10:11 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Jul 2017 16:26:29 +0000 (19:26 +0300)
commitf0e0e86aa35d895d4e5a0d95f054b701bcdf3c9e
treee3c49197499c5a8cf879a106b43e2fa127d166cf
parentc33ade1227a5d7bfb96cb34311bae2e5d7014f3e
pci: move NUMA node check from scan to probe

Commit 8a04cb612589 ("pci: set default numa node for broken systems")
added logic to default to NUMA node 0 when sysfs numa_node information
was wrong or not available.

Unfortunately there are many devices with wrong NUMA node information
that DPDK does not care about but still show warnings for them.

Instead, only check for invalid NUMA node information for devices
managed by the DPDK.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/linuxapp/eal/eal_pci.c