eal/linux: fix socket value for undetermined numa node
authorCunming Liang <cunming.liang@intel.com>
Fri, 31 Jul 2015 01:36:12 +0000 (09:36 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Aug 2015 17:22:42 +0000 (19:22 +0200)
commit81f8d2317df2ea614b213d4001d912c824f10a4d
tree9c51b8283ade1957fa8f25e67c231c2817c21784
parentc07f42ec0bfbc52f47c178a5adfc8937689095e3
eal/linux: fix socket value for undetermined numa node

The patch sets zero as the default value of pci device numa_node
if the socket could not be determined.
It provides the same default value as FreeBSD which has no NUMA support,
and makes the return value of rte_eth_dev_socket_id() be consistent
with the API description.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
lib/librte_eal/linuxapp/eal/eal_pci.c