1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
6 reason = 'not supported on Windows'
10 sources = files('bpf.c',
17 if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')
18 sources += files('bpf_jit_x86.c')
19 elif dpdk_conf.has('RTE_ARCH_ARM64')
20 sources += files('bpf_jit_arm64.c')
23 headers = files('bpf_def.h',
27 deps += ['mbuf', 'net', 'ethdev']
29 dep = dependency('libelf', required: false, method: 'pkg-config')
31 dpdk_conf.set('RTE_LIBRTE_BPF_ELF', 1)
32 sources += files('bpf_load_elf.c')
36 if dpdk_conf.has('RTE_PORT_PCAP')
37 sources += files('bpf_convert.c')