[ovs-dev] [v7 09/12] dpdk: add additional CPU ISA detection strings

kumar Amber kumar.amber at intel.com
Thu Jul 8 14:10:49 UTC 2021


From: Harry van Haaren <harry.van.haaren at intel.com>

This commit enables OVS to at runtime check for more detailed
AVX512 capabilities, specifically Byte and Word (BW) extensions,
and Vector Bit Manipulation Instructions (VBMI).

These instructions will be used in the CPU ISA optimized
implementations of traffic profile aware miniflow extract.

Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com>
Acked-by: Eelco Chaudron <echaudro at redhat.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
---
 NEWS       | 1 +
 lib/dpdk.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/NEWS b/NEWS
index 3addb8616..b35f73d98 100644
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,7 @@ Post-v2.15.0
        traffic.
      * Add build time configure command to enable auto-validatior as default
        miniflow implementation at build time.
+     * Cache results for CPU ISA checks, reduces overhead on repeated lookups.
    - ovs-ctl:
      * New option '--no-record-hostname' to disable hostname configuration
        in ovsdb on startup.
diff --git a/lib/dpdk.c b/lib/dpdk.c
index 567fd28d4..bcdd575e9 100644
--- a/lib/dpdk.c
+++ b/lib/dpdk.c
@@ -665,6 +665,8 @@ dpdk_get_cpu_has_isa(const char *arch, const char *feature)
 #if __x86_64__
     /* CPU flags only defined for the architecture that support it. */
     CHECK_CPU_FEATURE(feature, "avx512f", RTE_CPUFLAG_AVX512F);
+    CHECK_CPU_FEATURE(feature, "avx512bw", RTE_CPUFLAG_AVX512BW);
+    CHECK_CPU_FEATURE(feature, "avx512vbmi", RTE_CPUFLAG_AVX512VBMI);
     CHECK_CPU_FEATURE(feature, "avx512vpopcntdq", RTE_CPUFLAG_AVX512VPOPCNTDQ);
     CHECK_CPU_FEATURE(feature, "bmi2", RTE_CPUFLAG_BMI2);
 #endif
-- 
2.25.1



More information about the dev mailing list