X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fenic%2Fmeson.build;h=064487118e9e4512a3bac6613e3df1dd73a25e6d;hb=8ba325b051eaad293c6eae2f5dbbe1d3e997d636;hp=bfd4e2373b568c34781a4796c45ad8458d47509d;hpb=e14dca8dc1121efbff29e0928d5de703f924c3f0;p=dpdk.git diff --git a/drivers/net/enic/meson.build b/drivers/net/enic/meson.build index bfd4e2373b..064487118e 100644 --- a/drivers/net/enic/meson.build +++ b/drivers/net/enic/meson.build @@ -17,3 +17,19 @@ sources = files( ) deps += ['hash'] includes += include_directories('base') + +# The current implementation assumes 64-bit pointers +if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2') and cc.sizeof('void *') == 8 + sources += files('enic_rxtx_vec_avx2.c') +# Build the avx2 handler if the compiler supports it, even though 'machine' +# does not. This is to support users who build for the min supported machine +# and need to run the binary on newer CPUs too. +# This part is from i40e meson.build +elif cc.has_argument('-mavx2') and cc.sizeof('void *') == 8 + enic_avx2_lib = static_library('enic_avx2_lib', + 'enic_rxtx_vec_avx2.c', + dependencies: [static_rte_ethdev, static_rte_bus_pci], + include_directories: includes, + c_args: [cflags, '-mavx2']) + objs += enic_avx2_lib.extract_objects('enic_rxtx_vec_avx2.c') +endif