net/ice: add generic flow API
[dpdk.git] / drivers / net / ice / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3
4 subdir('base')
5 objs = [base_objs]
6
7 sources = files(
8         'ice_ethdev.c',
9         'ice_rxtx.c',
10         'ice_switch_filter.c',
11         'ice_generic_flow.c'
12         )
13
14 deps += ['hash']
15 includes += include_directories('base')
16
17 if arch_subdir == 'x86'
18         sources += files('ice_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                 sources += files('ice_rxtx_vec_avx2.c')
25         elif cc.has_argument('-mavx2')
26                 ice_avx2_lib = static_library('ice_avx2_lib',
27                                 'ice_rxtx_vec_avx2.c',
28                                 dependencies: [static_rte_ethdev,
29                                         static_rte_kvargs, static_rte_hash],
30                                 include_directories: includes,
31                                 c_args: [cflags, '-mavx2'])
32                 objs += ice_avx2_lib.extract_objects('ice_rxtx_vec_avx2.c')
33         endif
34 endif