bus/pci: fix selection of default device NUMA node
authorHoussem Bouhlel <houssem.bouhlel@6wind.com>
Mon, 25 Oct 2021 14:24:14 +0000 (16:24 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Tue, 26 Oct 2021 08:30:58 +0000 (10:30 +0200)
commit3a05b98dd6d72851d4a8819dbffcd52aaf98a2b1
tree0f03d4e77d1cb225388ccbc0197f2b3ffd44b9aa
parentcd79e0205824cad872e7332976ee773522c3f475
bus/pci: fix selection of default device NUMA node

There can be dev binding issue when no hugepages
are allocated for socket 0.
To avoid this, set device numa node value based on
the first lcore instead of 0.

Signed-off-by: Houssem Bouhlel <houssem.bouhlel@6wind.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
drivers/bus/pci/pci_common.c