# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Luca Boccassi if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 subdir_done() endif testpmd_sources = files('iavf_testpmd.c') deps += ['common_iavf', 'security', 'cryptodev'] sources = files( 'iavf_ethdev.c', 'iavf_rxtx.c', 'iavf_vchnl.c', 'iavf_generic_flow.c', 'iavf_fdir.c', 'iavf_hash.c', 'iavf_tm.c', 'iavf_ipsec_crypto.c', 'iavf_fsub.c', ) if arch_subdir == 'x86' and is_variable('static_rte_common_iavf') sources += files('iavf_rxtx_vec_sse.c') if is_windows and cc.get_id() != 'clang' cflags += ['-fno-asynchronous-unwind-tables'] endif iavf_avx2_lib = static_library('iavf_avx2_lib', 'iavf_rxtx_vec_avx2.c', dependencies: [static_rte_ethdev, static_rte_common_iavf], include_directories: includes, c_args: [cflags, '-mavx2']) objs += iavf_avx2_lib.extract_objects('iavf_rxtx_vec_avx2.c') if cc_has_avx512 cflags += ['-DCC_AVX512_SUPPORT'] avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' endif iavf_avx512_lib = static_library('iavf_avx512_lib', 'iavf_rxtx_vec_avx512.c', dependencies: [static_rte_ethdev, static_rte_common_iavf], include_directories: includes, c_args: avx512_args) objs += iavf_avx512_lib.extract_objects('iavf_rxtx_vec_avx512.c') endif elif arch_subdir == 'arm' sources += files('iavf_rxtx_vec_neon.c') endif headers = files('rte_pmd_iavf.h')