1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2018 Luca Boccassi <bluca@debian.org>
4 if host_machine.system() != 'linux'
16 deps = ['bus_vdev', 'gso', 'hash']
18 cflags += '-DTAP_MAX_QUEUES=16'
20 # To maintain the compatibility with the make build system
21 # tap_autoconf.h file is still generated.
22 # input array for meson symbol search:
23 # [ "MACRO to define if found", "header for the search",
24 # "enum/define", "symbol to search" ]
27 [ 'HAVE_TC_FLOWER', 'linux/pkt_cls.h',
28 'TCA_FLOWER_UNSPEC' ],
29 [ 'HAVE_TC_VLAN_ID', 'linux/pkt_cls.h',
30 'TCA_FLOWER_KEY_VLAN_PRIO' ],
31 [ 'HAVE_TC_BPF', 'linux/pkt_cls.h',
33 [ 'HAVE_TC_BPF_FD', 'linux/pkt_cls.h',
35 [ 'HAVE_TC_ACT_BPF', 'linux/tc_act/tc_bpf.h',
36 'TCA_ACT_BPF_UNSPEC' ],
37 [ 'HAVE_TC_ACT_BPF_FD', 'linux/tc_act/tc_bpf.h',
40 config = configuration_data()
41 allow_experimental_apis = true
43 config.set(arg[0], cc.has_header_symbol(arg[1], arg[2]))
45 configure_file(output : 'tap_autoconf.h', configuration : config)