1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
6 cflags += ['-DPF_DRIVER',
27 if arch_subdir == 'x86'
28 dpdk_conf.set('RTE_LIBRTE_I40E_INC_VECTOR', 1)
29 sources += files('i40e_rxtx_vec_sse.c')
31 # compile AVX2 version if either:
32 # a. we have AVX supported in minimum instruction set baseline
33 # b. it's not minimum instruction set, but supported by compiler
34 if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2')
35 sources += files('i40e_rxtx_vec_avx2.c')
36 elif cc.has_argument('-mavx2')
37 i40e_avx2_lib = static_library('i40e_avx2_lib',
38 'i40e_rxtx_vec_avx2.c',
39 dependencies: [static_rte_ethdev,
40 static_rte_kvargs, static_rte_hash],
42 objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c')
46 includes += include_directories('base')
48 install_headers('rte_pmd_i40e.h')