X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fvirtio%2Fmeson.build;h=eaed46373dca347bbb9dae60edaae3553b63d5dd;hb=c1d4e9d37abdc6c07a05f7d96928e624fea9ebb5;hp=5cc529f6aa680a622e065d35e327f98fee1ccbdd;hpb=77d66da8383448dc7d99eb19f4b1e33aa562743e;p=dpdk.git diff --git a/drivers/net/virtio/meson.build b/drivers/net/virtio/meson.build index 5cc529f6aa..eaed46373d 100644 --- a/drivers/net/virtio/meson.build +++ b/drivers/net/virtio/meson.build @@ -11,8 +11,14 @@ deps += ['kvargs', 'bus_pci'] if arch_subdir == 'x86' if not machine_args.contains('-mno-avx512f') if cc.has_argument('-mavx512f') and cc.has_argument('-mavx512vl') and cc.has_argument('-mavx512bw') - cflags += ['-mavx512f', '-mavx512bw', '-mavx512vl'] cflags += ['-DCC_AVX512_SUPPORT'] + virtio_avx512_lib = static_library('virtio_avx512_lib', + 'virtio_rxtx_packed_avx.c', + dependencies: [static_rte_ethdev, + static_rte_kvargs, static_rte_bus_pci], + include_directories: includes, + c_args: [cflags, '-mavx512f', '-mavx512bw', '-mavx512vl']) + objs += virtio_avx512_lib.extract_objects('virtio_rxtx_packed_avx.c') if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) cflags += '-DVHOST_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) @@ -20,7 +26,6 @@ if arch_subdir == 'x86' elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) cflags += '-DVHOST_ICC_UNROLL_PRAGMA' endif - sources += files('virtio_rxtx_packed_avx.c') endif endif sources += files('virtio_rxtx_simple_sse.c') @@ -37,6 +42,7 @@ if is_linux 'virtio_user/vhost_kernel.c', 'virtio_user/vhost_kernel_tap.c', 'virtio_user/vhost_user.c', + 'virtio_user/vhost_vdpa.c', 'virtio_user/virtio_user_dev.c') deps += ['bus_vdev'] endif