net/cnxk: support basic port/queue statistics
[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_stats.c',
18 )
19
20 # CN9K
21 sources += files(
22         'cn9k_ethdev.c',
23         'cn9k_rx.c',
24         'cn9k_rx_mseg.c',
25         'cn9k_rx_vec.c',
26         'cn9k_tx.c',
27         'cn9k_tx_mseg.c',
28         'cn9k_tx_vec.c',
29 )
30 # CN10K
31 sources += files(
32         'cn10k_ethdev.c',
33         'cn10k_rx.c',
34         'cn10k_rx_mseg.c',
35         'cn10k_rx_vec.c',
36         'cn10k_tx.c',
37         'cn10k_tx_mseg.c',
38         'cn10k_tx_vec.c',
39 )
40
41 deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
42 deps += ['common_cnxk', 'mempool_cnxk']
43
44 # Allow implicit vector conversions and strict aliasing warning
45 extra_flags = ['-flax-vector-conversions', '-Wno-strict-aliasing']
46 foreach flag: extra_flags
47     if cc.has_argument(flag)
48         cflags += flag
49     endif
50 endforeach