diff options
author | Jieqiang Wang <jieqiang.wang@arm.com> | 2020-01-13 17:15:13 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-03-21 11:34:43 +0000 |
commit | 76c6159d83c2dfe29f84dc4b05d399cdbbdf2878 (patch) | |
tree | cb6f8521d76fa30ef828db554d297c553968287a /src/vat | |
parent | 34177e87639c62160318fd3957d0575f0a28e526 (diff) |
vlib: fix error when creating avf interface on SMP system
On SMP architecture, '/sys/bus/pci/devices/<devices id>/numa_node' file
will return -1 as a valid value if it does not have any NUMA node information.
Using -1 as a valid node id to access data structures will cause memory issue.
Fix the error by setting the value of numa_node to 0 if '/sys/bus/pci/devices/
<devices id>/numa_node' returns -1 and it is a SMP system.
Type: fix
Change-Id: Ib60e79c3656fe5b17e08fd9011122683e8b08b6f
Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
Diffstat (limited to 'src/vat')
0 files changed, 0 insertions, 0 deletions