net/hns3: fix typos on comments
[dpdk.git] / drivers / net / af_xdp / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Intel Corporation
3
4 if is_windows
5     build = false
6     reason = 'not supported on Windows'
7     subdir_done()
8 endif
9
10 sources = files('rte_eth_af_xdp.c')
11
12 bpf_dep = dependency('libbpf', required: false, method: 'pkg-config')
13 if not bpf_dep.found()
14     bpf_dep = cc.find_library('bpf', required: false)
15 endif
16
17 if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xdp.h')
18     ext_deps += bpf_dep
19     bpf_ver_dep = dependency('libbpf', version : '>=0.2.0',
20             required: false, method: 'pkg-config')
21     if bpf_ver_dep.found()
22         dpdk_conf.set('RTE_LIBRTE_AF_XDP_PMD_SHARED_UMEM', 1)
23     endif
24 else
25     build = false
26     reason = 'missing dependency, "libbpf"'
27 endif