1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Intel Corporation
4 sources = files('rte_eth_af_xdp.c')
6 bpf_dep = dependency('libbpf', required: false)
8 bpf_dep = cc.find_library('bpf', required: false)
11 if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xdp.h')
15 reason = 'missing dependency, "libbpf"'