From 1183699a4305850fd10c766f24adbe989a7dc39b Mon Sep 17 00:00:00 2001
From: hkk <hankangkang5@huawei.com>
Date: Fri, 20 Sep 2024 16:18:05 +0800
Subject: [PATCH] adapt libbpf 0.8.0

---
 drivers/net/af_xdp/meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build
index 69d109f..3759f8b 100644
--- a/drivers/net/af_xdp/meson.build
+++ b/drivers/net/af_xdp/meson.build
@@ -34,8 +34,7 @@ if cc.has_header('linux/if_xdp.h')
         endif
     elif bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('bpf/bpf.h')
         # libxdp not found. Rely solely on libbpf for xsk functionality
-        # which is only available in versions <= v0.6.0.
-        bpf_ver_dep = dependency('libbpf', version : '<=0.6.0',
+        bpf_ver_dep = dependency('libbpf',
                                  required: false, method: 'pkg-config')
         if bpf_ver_dep.found()
             ext_deps += bpf_dep
-- 
2.33.0

