net/mlx5: add Altivec Rx
[dpdk.git] / drivers / net / iavf / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
3
4 cflags += ['-Wno-strict-aliasing']
5
6 allow_experimental_apis = true
7
8 subdir('base')
9 objs = [base_objs]
10
11 sources = files(
12         'iavf_ethdev.c',
13         'iavf_rxtx.c',
14         'iavf_vchnl.c',
15 )
16
17 if arch_subdir == 'x86'
18         sources += files('iavf_rxtx_vec_sse.c')
19
20         # compile AVX2 version if either:
21         # a. we have AVX supported in minimum instruction set baseline
22         # b. it's not minimum instruction set, but supported by compiler
23         if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2')
24                 cflags += ['-DCC_AVX2_SUPPORT']
25                 sources += files('iavf_rxtx_vec_avx2.c')
26         elif cc.has_argument('-mavx2')
27                 cflags += ['-DCC_AVX2_SUPPORT']
28                 iavf_avx2_lib = static_library('iavf_avx2_lib',
29                                 'iavf_rxtx_vec_avx2.c',
30                                 dependencies: [static_rte_ethdev,
31                                         static_rte_kvargs, static_rte_hash],
32                                 include_directories: includes,
33                                 c_args: [cflags, '-mavx2'])
34                 objs += iavf_avx2_lib.extract_objects('iavf_rxtx_vec_avx2.c')
35         endif
36 endif