[PATCH v2 4/4] drivers/net: remove AVX2 build-time define
David Marchand
david.marchand at redhat.com
Mon Mar 17 10:47:41 CET 2025
On Fri, Mar 14, 2025 at 6:44 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> Since all supported compilers can generate AVX2 code, we will always
> enable the build of the AVX2 files on x86. This means that
> CC_AVX2_SUPPORT is always true on x86, so it can be removed and a
> regular "#ifdef RTE_ARCH_x86" used in its place.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
> drivers/net/bnxt/bnxt_ethdev.c | 2 --
> drivers/net/octeon_ep/meson.build | 1 -
> drivers/net/octeon_ep/otx_ep_ethdev.c | 4 ----
> 3 files changed, 7 deletions(-)
>
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
> index 144d4377bd..a318604c20 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -3238,8 +3238,6 @@ static const struct {
> #if defined(RTE_ARCH_X86)
> {bnxt_crx_pkts_vec, "Vector SSE"},
> {bnxt_recv_pkts_vec, "Vector SSE"},
> -#endif
> -#if defined(RTE_ARCH_X86) && defined(CC_AVX2_SUPPORT)
I was wondering why this was not coming along a meson.build.
On the principle, this
Fixes: d58c6c077cc2 ("net/bnxt: add AVX2 Rx for compressed CQE")
> {bnxt_crx_pkts_vec_avx2, "Vector AVX2"},
> {bnxt_recv_pkts_vec_avx2, "Vector AVX2"},
> #endif
--
David Marchand
More information about the dev
mailing list