net/virtio: restore some optimisations with AVX512
Subsystems (2)
PATCH 1/1 net/virtio: restore some optimisations with AVX512
Those optimisations were only enabled with make builds, fix the meson part.
Fixes 77d66da83834 ("net/virtio: add vectorized packed ring Rx")
Signed-off-by David Marchand <[email protected]>
--- drivers/net/virtio/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/virtio/meson.build +3 -3
@@ -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
Signature · 1 line
2.23.0
Hi Marvin,
Quoted 20 lines · David Marchand
Those optimisations were only enabled with make builds, fix the meson part.
Fixes 77d66da83834 ("net/virtio: add vectorized packed ring Rx")Signed-off-by David Marchand <[email protected]>--- drivers/net/virtio/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/net/virtio/meson.build +0
-1@@ -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'
drivers/net/virtio/meson.build if arch_subdir == 'x86' · line 40
Quoted 10 lines
drivers/net/virtio/meson.build +3
-2+ 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
I wonder how this was not spotted by the Intel performance lab? Is that these optimizations do not bring performance gains, or it is not benchmark-ed?
Anyway:
Reviewed-by Maxime Coquelin <[email protected]>
Thanks,
Maxime
Maxime Coquelin
AppliedQuoted 11 lines · David Marchand
Those optimisations were only enabled with make builds, fix the meson part.
Fixes 77d66da83834 ("net/virtio: add vectorized packed ring Rx")Signed-off-by David Marchand <[email protected]>--- drivers/net/virtio/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to dpdk-next-virtio/main.
Thanks,
Maxime