summaryrefslogtreecommitdiff
path: root/tests/dpif-netdev.at
diff options
context:
space:
mode:
authorDavid Wilder <dwilder@us.ibm.com>2021-06-22 11:53:08 -0700
committerIlya Maximets <i.maximets@ovn.org>2021-07-07 23:35:57 +0200
commit3da3cc1a0cf281cd671d672bbdb09002938ec14e (patch)
tree7b33614c1b39f8bb46ebc65722ce4fb7741cf23d /tests/dpif-netdev.at
parent154983c592da8cf4ea6289b8b271176d0ad962b7 (diff)
downloadopenvswitch-3da3cc1a0cf281cd671d672bbdb09002938ec14e.tar.gz
ovs-numa: Support non-contiguous numa nodes and offline CPU cores.
This change removes the assumption that numa nodes and cores are numbered contiguously in linux. This change is required to support some Power systems. A check has been added to verify that cores are online, offline cores result in non-contiguously numbered cores. DPDK EAL option generation is updated to work with non-contiguous numa nodes. These options can be seen in the ovs-vswitchd.log. For example: a system containing only numa nodes 0 and 8 will generate the following: EAL ARGS: ovs-vswitchd --socket-mem 1024,0,0,0,0,0,0,0,1024 \ --socket-limit 1024,0,0,0,0,0,0,0,1024 -l 0 Tests for pmd and dpif-netdev have been updated to validate non-contiguous numbered nodes. Signed-off-by: David Wilder <dwilder@us.ibm.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'tests/dpif-netdev.at')
-rw-r--r--tests/dpif-netdev.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dpif-netdev.at b/tests/dpif-netdev.at
index 16402ebae..53eee185a 100644
--- a/tests/dpif-netdev.at
+++ b/tests/dpif-netdev.at
@@ -98,7 +98,7 @@ m4_define([DPIF_NETDEV_DUMMY_IFACE],
fail-mode=secure -- \
add-port br1 p2 -- set interface p2 type=$1 options:stream=unix:$OVS_RUNDIR/p0.sock ofport_request=2 -- \
add-port br1 p8 -- set interface p8 ofport_request=8 type=$1 --], [], [],
- [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
+ [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,8,8,8,8"], [])])
AT_CHECK([ovs-appctl vlog/set dpif:dbg dpif_netdev:dbg])
AT_CHECK([ovs-ofctl add-flow br0 action=normal])