From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E1E1A00BE; Thu, 17 Feb 2022 14:12:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 624994068B; Thu, 17 Feb 2022 14:12:07 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id A0C7D40042 for ; Thu, 17 Feb 2022 14:12:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645103525; x=1676639525; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sFb+22VLCJ8p3d8r5ecGn2UJAW7V93MvIefsqxw/TYs=; b=TF9s9GW1iP5aoSBStz7Vdgb3oCQlk/Btgi+NkfXwUhMaGDcbP1AJoU16 4LCob8YQ5J4MAa196LQrpk/18v8EGElrr7IGyARrfxzieFkE8/Ko3bKE1 nKh1KCMWM8uPErhTE6WBH86n9FuoiHxDPK5Mp0+uNQYQUbqutGJWEALuw 5lU8NvNv0cxWy3s06RpX69hLb4hxHMkTecdZ9GdxciPiOsIkw0nCEZkzV NmIWviff5NzXTDKbklX1jSDfOVQgOMOBu8qUQZsCHYNnwgcSK1NXQyvsp vOV354BT4Kazwfz0l8Db1LqDewHmo1MnWExqqQKCahUjP5WnuuLTbg8KZ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="231492578" X-IronPort-AV: E=Sophos;i="5.88,375,1635231600"; d="scan'208";a="231492578" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 05:12:04 -0800 X-IronPort-AV: E=Sophos;i="5.88,375,1635231600"; d="scan'208";a="530205082" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.22.221]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 17 Feb 2022 05:12:03 -0800 Date: Thu, 17 Feb 2022 13:12:00 +0000 From: Bruce Richardson To: Ciara Loftus Cc: dev@dpdk.org Subject: Re: [PATCH] net/af_xdp: make the PMD compatible with libbpf >= v0.7.0 Message-ID: References: <20220217121430.17610-1-ciara.loftus@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220217121430.17610-1-ciara.loftus@intel.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Feb 17, 2022 at 12:14:30PM +0000, Ciara Loftus wrote: > libbpf v0.7.0 deprecates the bpf_prog_load function. Use meson to detect > if libbpf >= v0.7.0 is linked and if so, use the recommended replacement > functions bpf_object__open_file and bpf_oject__load. > > Signed-off-by: Ciara Loftus > --- > drivers/net/af_xdp/compat.h | 39 +++++++++++++++++++++++++++++ > drivers/net/af_xdp/meson.build | 5 ++++ > drivers/net/af_xdp/rte_eth_af_xdp.c | 9 +++---- > 3 files changed, 48 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build > index 93e895eab9..9fe4063b99 100644 > --- a/drivers/net/af_xdp/meson.build > +++ b/drivers/net/af_xdp/meson.build > @@ -22,6 +22,11 @@ if cc.has_header('linux/if_xdp.h') > cflags += ['-DRTE_NET_AF_XDP_SHARED_UMEM'] > ext_deps += xdp_dep > ext_deps += bpf_dep > + bpf_ver_dep = dependency('libbpf', version : '>=0.6.0', typo? Commit log refers to v0.7.