diff options
author | David Marchand <david.marchand@redhat.com> | 2021-12-15 17:35:33 +0100 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-01-03 18:45:40 +0100 |
commit | b366fa2f4947f7e64154c7656b938b7ef4834ae8 (patch) | |
tree | 5bedbf1b3cd1ae9864ed2b2aebb9bf9eae68d18c /lib/dpdk.h | |
parent | 11441385c2f788320799ba29b344098b917d8827 (diff) | |
download | openvswitch-b366fa2f4947f7e64154c7656b938b7ef4834ae8.tar.gz |
dpif-netdev: Call cpuid for x86 isa availability.
DPIF AVX512 optimizations currently rely on DPDK availability while
they can be used without DPDK.
Besides, checking for availability of some isa only has to be done once
and won't change while a OVS process runs.
Resolve isa availability in constructors by using a simplified query
based on cpuid API that comes from the compiler.
Note: this also fixes the check on BMI2 availability: DPDK had a bug
for this isa, see https://git.dpdk.org/dpdk/commit/?id=aae3037ab1e0.
Suggested-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/dpdk.h')
-rw-r--r-- | lib/dpdk.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/dpdk.h b/lib/dpdk.h index 445a51d06..2eb1aedbb 100644 --- a/lib/dpdk.h +++ b/lib/dpdk.h @@ -44,6 +44,5 @@ bool dpdk_per_port_memory(void); bool dpdk_available(void); void print_dpdk_version(void); void dpdk_status(const struct ovsrec_open_vswitch *); -bool dpdk_get_cpu_has_isa(const char *arch, const char *feature); #endif /* dpdk.h */ |