net/sfc: support flow action count in transfer rules
[dpdk.git] / drivers / net / sfc / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 #
3 # Copyright(c) 2019-2021 Xilinx, Inc.
4 # Copyright(c) 2016-2019 Solarflare Communications Inc.
5 #
6 # This software was jointly developed between OKTET Labs (under contract
7 # for Solarflare) and Solarflare Communications, Inc.
8
9 if is_windows
10     build = false
11     reason = 'not supported on Windows'
12     subdir_done()
13 endif
14
15 if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
16     build = false
17     reason = 'only supported on x86_64 and aarch64'
18     subdir_done()
19 endif
20
21 extra_flags = []
22
23 # Strict-aliasing rules are violated by rte_eth_link to uint64_t casts
24 extra_flags += '-Wno-strict-aliasing'
25
26 # Enable more warnings
27 extra_flags += [
28         '-Wdisabled-optimization',
29 ]
30
31 # Compiler and version dependent flags
32 extra_flags += [
33         '-Waggregate-return',
34         '-Wbad-function-cast',
35 ]
36
37 foreach flag: extra_flags
38     if cc.has_argument(flag)
39         cflags += flag
40     endif
41 endforeach
42
43 # for gcc compiles we need -latomic for 128-bit atomic ops
44 if cc.get_id() == 'gcc'
45     libatomic_dep = cc.find_library('atomic', required: false)
46     if not libatomic_dep.found()
47         build = false
48         reason = 'missing dependency, "libatomic"'
49         subdir_done()
50     endif
51
52     # libatomic could be half-installed when above check finds it but
53     # linkage fails
54     atomic_link_code = '''
55     #include <stdio.h>
56     void main() { printf("libatomic link check\n"); }
57     '''
58     if not cc.links(atomic_link_code, dependencies: libatomic_dep)
59         build = false
60         reason = 'broken dependency, "libatomic"'
61         subdir_done()
62     endif
63     ext_deps += libatomic_dep
64 endif
65
66 deps += ['common_sfc_efx', 'bus_pci']
67 sources = files(
68         'sfc_ethdev.c',
69         'sfc_kvargs.c',
70         'sfc.c',
71         'sfc_mcdi.c',
72         'sfc_sriov.c',
73         'sfc_intr.c',
74         'sfc_ev.c',
75         'sfc_port.c',
76         'sfc_rx.c',
77         'sfc_tx.c',
78         'sfc_tso.c',
79         'sfc_filter.c',
80         'sfc_switch.c',
81         'sfc_mae.c',
82         'sfc_mae_counter.c',
83         'sfc_flow.c',
84         'sfc_dp.c',
85         'sfc_ef10_rx.c',
86         'sfc_ef10_essb_rx.c',
87         'sfc_ef10_tx.c',
88         'sfc_ef100_rx.c',
89         'sfc_ef100_tx.c',
90         'sfc_service.c',
91 )