2018-05-10 10:23:03 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
|
|
|
|
allow_experimental_apis = true
|
|
|
|
sources = files('bpf.c',
|
|
|
|
'bpf_exec.c',
|
|
|
|
'bpf_load.c',
|
2018-05-10 10:23:07 +00:00
|
|
|
'bpf_pkt.c',
|
2018-05-10 10:23:03 +00:00
|
|
|
'bpf_validate.c')
|
|
|
|
|
2018-09-26 09:15:36 +00:00
|
|
|
if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')
|
2018-05-10 10:23:06 +00:00
|
|
|
sources += files('bpf_jit_x86.c')
|
|
|
|
endif
|
|
|
|
|
2018-05-10 10:23:03 +00:00
|
|
|
install_headers = files('bpf_def.h',
|
2018-05-10 10:23:07 +00:00
|
|
|
'rte_bpf.h',
|
|
|
|
'rte_bpf_ethdev.h')
|
2018-05-10 10:23:03 +00:00
|
|
|
|
2018-05-10 10:23:07 +00:00
|
|
|
deps += ['mbuf', 'net', 'ethdev']
|
2018-05-10 10:23:04 +00:00
|
|
|
|
2019-02-26 17:46:33 +00:00
|
|
|
dep = dependency('libelf', required: false)
|
|
|
|
if dep.found()
|
2019-04-10 13:45:17 +00:00
|
|
|
dpdk_conf.set('RTE_LIBRTE_BPF_ELF', 1)
|
2018-05-10 10:23:04 +00:00
|
|
|
sources += files('bpf_load_elf.c')
|
|
|
|
ext_deps += dep
|
|
|
|
endif
|