[ovs-dev] [PATCH v2] dpif-netdev: Call cpuid for x86 isa availability.

David Marchand david.marchand at redhat.com
Thu Nov 25 14:27:24 UTC 2021


On Tue, Nov 23, 2021 at 4:03 PM David Marchand
<david.marchand at redhat.com> wrote:
>
> DPIF AVX512 optimisations 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 at ovn.org>
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Now that I ran this on a F34 system with AVX512, I can see this breaks
static link.
Will respin.


-- 
David Marchand



More information about the dev mailing list