AVX512 DPIF must be active in order for the MFEX AutoValidator to be executed.
If the DPIF-AVX512 is not available, the unit test is skipped, as the
scalar DPIF does not use the MFEX function-pointer based optimizations.

This patch depends on the following patch-set:
http://patchwork.ozlabs.org/project/openvswitch/list/?series=274454

Suggested-by: Cian Ferriter <[email protected]>
Signed-off-by: Kumar Amber <[email protected]>
---
 tests/dpif-netdev.at | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/dpif-netdev.at b/tests/dpif-netdev.at
index fbb8fe9a7..92bf5503e 100644
--- a/tests/dpif-netdev.at
+++ b/tests/dpif-netdev.at
@@ -650,6 +650,10 @@ on_exit "pkill -f -x -9 '$PYTHON3 $srcdir/genpkts.py -1'"
      ovs-appctl netdev-dummy/receive p1 "$pkt" || break
  done) &
 
+AT_SKIP_IF([! ovs-appctl dpif-netdev/dpif-impl-set dpif_avx512], [], [dnl
+DPIF implementation set to dpif_avx512.
+])
+
 AT_CHECK([ovs-appctl dpif-netdev/miniflow-parser-set autovalidator], [0], [dnl
 Miniflow extract implementation set to autovalidator.
 ])
@@ -674,6 +678,10 @@ on_exit "pkill -f -x -9 '$PYTHON3 $srcdir/genpkts.py -1 
fuzz'"
      ovs-appctl netdev-dummy/receive p1 "$pkt" || break
  done) &
 
+AT_SKIP_IF([! ovs-appctl dpif-netdev/dpif-impl-set dpif_avx512], [], [dnl
+DPIF implementation set to dpif_avx512.
+])
+
 AT_CHECK([ovs-appctl dpif-netdev/miniflow-parser-set autovalidator], [0], [dnl
 Miniflow extract implementation set to autovalidator.
 ])
-- 
2.25.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to