2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 09:58:01 +00:00

dpdk: Add additional CPU ISA detection strings

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@intel.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
Harry van Haaren 2021-07-15 21:36:15 +05:30 committed by Ian Stokes
parent dc39608d2a
commit 32f93dc5ed
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -43,6 +43,7 @@ Post-v2.15.0
traffic. traffic.
* Add build time configure command to enable auto-validatior as default * Add build time configure command to enable auto-validatior as default
miniflow implementation at build time. miniflow implementation at build time.
* Cache results for CPU ISA checks, reduces overhead on repeated lookups.
- ovs-ctl: - ovs-ctl:
* New option '--no-record-hostname' to disable hostname configuration * New option '--no-record-hostname' to disable hostname configuration
in ovsdb on startup. in ovsdb on startup.

View File

@ -706,6 +706,8 @@ dpdk_get_cpu_has_isa(const char *arch, const char *feature)
#if __x86_64__ #if __x86_64__
/* CPU flags only defined for the architecture that support it. */ /* CPU flags only defined for the architecture that support it. */
CHECK_CPU_FEATURE(feature, "avx512f", RTE_CPUFLAG_AVX512F); 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, "avx512vpopcntdq", RTE_CPUFLAG_AVX512VPOPCNTDQ);
CHECK_CPU_FEATURE(feature, "bmi2", RTE_CPUFLAG_BMI2); CHECK_CPU_FEATURE(feature, "bmi2", RTE_CPUFLAG_BMI2);
#endif #endif