Skip to content

Commit

Permalink
net/virtio: restore some optimisations with AVX512
Browse files Browse the repository at this point in the history
[ upstream commit 86ce144 ]

Those optimisations were only enabled with make builds, fix the meson
part.

Fixes: 77d66da ("net/virtio: add vectorized packed ring Rx")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
david-marchand authored and kevintraynor committed May 24, 2022
1 parent 58d1b85 commit 4852da7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/virtio/meson.build
Expand Up @@ -30,11 +30,11 @@ if arch_subdir == 'x86'
c_args: [cflags, '-mavx512f', '-mavx512bw', '-mavx512vl'])
objs += virtio_avx512_lib.extract_objects('virtio_rxtx_packed.c')
if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0'))
cflags += '-DVHOST_GCC_UNROLL_PRAGMA'
cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA'
elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0'))
cflags += '-DVHOST_CLANG_UNROLL_PRAGMA'
cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA'
elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0'))
cflags += '-DVHOST_ICC_UNROLL_PRAGMA'
cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA'
endif
endif
endif
Expand Down

0 comments on commit 4852da7

Please sign in to comment.