1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Cisco Systems, Inc.
6 reason = 'not supported on Windows'
22 'enic_vf_representor.c',
25 includes += include_directories('base')
27 # The current implementation assumes 64-bit pointers
28 if cc.get_define('__AVX2__', args: machine_args) != '' and dpdk_conf.get('RTE_ARCH_64')
29 sources += files('enic_rxtx_vec_avx2.c')
30 # Build the avx2 handler if the compiler supports it, even though 'machine'
31 # does not. This is to support users who build for the min supported machine
32 # and need to run the binary on newer CPUs too.
33 # This part is from i40e meson.build
34 elif cc.has_argument('-mavx2') and dpdk_conf.get('RTE_ARCH_64')
35 enic_avx2_lib = static_library('enic_avx2_lib',
36 'enic_rxtx_vec_avx2.c',
37 dependencies: [static_rte_ethdev, static_rte_bus_pci],
38 include_directories: includes,
39 c_args: [cflags, '-mavx2'])
40 objs += enic_avx2_lib.extract_objects('enic_rxtx_vec_avx2.c')