net/sfc: add pattern parsing stub to MAE backend
[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         'ice_fdir_filter.c',
13         'ice_hash.c',
14         'ice_acl_filter.c'
15         )
16
17 deps += ['hash', 'net', 'common_iavf']
18 includes += include_directories('base', '../../common/iavf')
19
20 if arch_subdir == 'x86'
21         sources += files('ice_rxtx_vec_sse.c')
22
23         # compile AVX2 version if either:
24         # a. we have AVX supported in minimum instruction set baseline
25         # b. it's not minimum instruction set, but supported by compiler
26         if cc.get_define('__AVX2__', args: machine_args) != ''
27                 sources += files('ice_rxtx_vec_avx2.c')
28         elif cc.has_argument('-mavx2')
29                 ice_avx2_lib = static_library('ice_avx2_lib',
30                                 'ice_rxtx_vec_avx2.c',
31                                 dependencies: [static_rte_ethdev,
32                                         static_rte_kvargs, static_rte_hash],
33                                 include_directories: includes,
34                                 c_args: [cflags, '-mavx2'])
35                 objs += ice_avx2_lib.extract_objects('ice_rxtx_vec_avx2.c')
36         endif
37 endif
38
39 sources += files('ice_dcf.c',
40                  'ice_dcf_ethdev.c',
41                  'ice_dcf_parent.c')
42
43 headers = files('rte_pmd_ice.h')