1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
6 reason = 'not supported on Windows'
10 sources = files('bpf.c',
18 if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')
19 sources += files('bpf_jit_x86.c')
20 elif dpdk_conf.has('RTE_ARCH_ARM64')
21 sources += files('bpf_jit_arm64.c')
24 headers = files('bpf_def.h',
28 deps += ['mbuf', 'net', 'ethdev']
30 dep = dependency('libelf', required: false, method: 'pkg-config')
32 dpdk_conf.set('RTE_LIBRTE_BPF_ELF', 1)
33 sources += files('bpf_load_elf.c')
36 warning('libelf is missing, rte_bpf_elf_load API will be disabled')
39 if dpdk_conf.has('RTE_HAS_LIBPCAP')
40 sources += files('bpf_convert.c')
43 warning('libpcap is missing, rte_bpf_convert API will be disabled')