xref: /dpdk/drivers/net/tap/meson.build (revision 6a2e47a3e26acb5ec206918c7f6454ee4aefa138)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright 2018 Luca Boccassi <bluca@debian.org>
3
4if not is_linux
5    build = false
6    reason = 'only supported on Linux'
7endif
8
9sources = files(
10        'rte_eth_tap.c',
11        'tap_intr.c',
12        'tap_netlink.c',
13)
14
15deps = ['bus_vdev', 'gso', 'hash']
16
17max_queues = '-DTAP_MAX_QUEUES=64'
18cflags += max_queues
19
20require_iova_in_mbuf = false
21
22if cc.has_header_symbol('linux/pkt_cls.h', 'TCA_FLOWER_ACT')
23    cflags += '-DHAVE_TCA_FLOWER'
24    sources += files(
25            'tap_flow.c',
26            'tap_tcmsgs.c',
27    )
28
29    enable_tap_rss = false
30
31    subdir('bpf')
32    if enable_tap_rss
33        cflags += '-DHAVE_BPF_RSS'
34        ext_deps += libbpf
35        sources += tap_rss_skel_h
36    endif
37endif
38