net/cnxk: support flow API
[dpdk.git] / drivers / net / cnxk / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2021 Marvell.
3 #
4
5 if not dpdk_conf.get('RTE_ARCH_64')
6     build = false
7     reason = 'only supported on 64-bit'
8     subdir_done()
9 endif
10
11 sources = files(
12         'cnxk_ethdev.c',
13         'cnxk_ethdev_devargs.c',
14         'cnxk_ethdev_ops.c',
15         'cnxk_link.c',
16         'cnxk_lookup.c',
17         'cnxk_rte_flow.c',
18         'cnxk_stats.c',
19 )
20
21 # CN9K
22 sources += files(
23         'cn9k_ethdev.c',
24         'cn9k_rte_flow.c',
25         'cn9k_rx.c',
26         'cn9k_rx_mseg.c',
27         'cn9k_rx_vec.c',
28         'cn9k_tx.c',
29         'cn9k_tx_mseg.c',
30         'cn9k_tx_vec.c',
31 )
32 # CN10K
33 sources += files(
34         'cn10k_ethdev.c',
35         'cn10k_rte_flow.c',
36         'cn10k_rx.c',
37         'cn10k_rx_mseg.c',
38         'cn10k_rx_vec.c',
39         'cn10k_tx.c',
40         'cn10k_tx_mseg.c',
41         'cn10k_tx_vec.c',
42 )
43
44 deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
45 deps += ['common_cnxk', 'mempool_cnxk']
46
47 # Allow implicit vector conversions and strict aliasing warning
48 extra_flags = ['-flax-vector-conversions', '-Wno-strict-aliasing']
49 foreach flag: extra_flags
50     if cc.has_argument(flag)
51         cflags += flag
52     endif
53 endforeach