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 98CBEA0032; Fri, 24 Jun 2022 03:26:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AA554069D; Fri, 24 Jun 2022 03:26:39 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 7F03F4067B for ; Fri, 24 Jun 2022 03:26:37 +0200 (CEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7C89C5C0151; Thu, 23 Jun 2022 21:26:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 23 Jun 2022 21:26:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1656033994; x= 1656120394; bh=UEfM93xvdbfW4Z/aBBJ2FyWPDLqD74u3UddV834Raic=; b=Y cUd8aMhewj8cBK8GDmkdYLN8eCqqtCgHYQeZ8FLe0dBbStVe0CW2vA5B/yL2y+Yi 1pi/1pMh68Sp6rn8Jy1BtFA84KVAC8/Hh6e6b1Z2AcwEbLLDYu2qvu5jnFK5+/aw s8eAJCzYriW/8sEyuoYF1Xj8NOm2eS4YBya2R26lBiajjO5CXb84//DXASA88QMH 3HCrbviXGlipP74xKT73IfFI6wRk/1VkP/J2GJ5xTgVoFA6R8sLAZuUVESVY9TWC UYcG8nhG/t4jqB0Jw/VBNsBJagocpD2Cg3/WXPX7ZkEA1e2DNnfs21/MVGwDPdPi vN7uJi+uyHPcB/7DVW+RA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656033994; x= 1656120394; bh=UEfM93xvdbfW4Z/aBBJ2FyWPDLqD74u3UddV834Raic=; b=i WexI0znz+hZ4S5IurqzlJno/NF0P5eq7/oeJhoaeuvqUdp76ZNxM7+vLi7kBujbA YVfDJjNtXYM5DMsd5wxq+K2cqbHxizJndJGi30Sl3dXZUhXseZ1rXuNmhadfxgRX TVJJAuqfoKcG7v5HE6qwEtbUG+gOuVnbsQ49g2IIg/yrL4w3gJbh8wxatDFdHNHq CTT+VNIK+Jx1IqXyDN1iOoEt6U+22L4IQXNi6LXZRJds4QKzJ+RhHIY6ph7ky1Kp Q0Wr4eqDROVtQOGrtEH0n+aLBBpWpIBhnEKyDIEO/QPInTI/2EwXAIBLnRgvO8+h U7yro5McQDULFOMzLX7jg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefkedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeejjefffffgffekfefflefgkeelteejffelledugefhheelffet heevudffudfgvdenucffohhmrghinhepughpughkrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jun 2022 21:26:33 -0400 (EDT) From: Thomas Monjalon To: Ferruh Yigit Cc: Ciara Loftus , Qi Zhang , dev@dpdk.org, david.marchand@redhat.com, ferruh.yigit@amd.com, andrew.rybchenko@oktetlabs.ru Subject: Re: af_xdp + libbpf 0.8 Date: Fri, 24 Jun 2022 03:26:31 +0200 Message-ID: <4227833.0vhOF50zNu@thomas> In-Reply-To: <4c546c6c-b51c-37c2-4a4e-5e471e5b2a37@xilinx.com> References: <3707170.uoxibFcf9D@thomas> <4c546c6c-b51c-37c2-4a4e-5e471e5b2a37@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 24/06/2022 00:18, Ferruh Yigit: > On 6/23/2022 10:58 PM, Thomas Monjalon wrote: > > Hi, > > > > It seems DPDK is not compatible with libbpf 0.8: > > > > drivers/net/af_xdp/rte_eth_af_xdp.c:871:6: error: 'bpf_get_link_xdp_id' is deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead > > /usr/include/bpf/libbpf.h:1168:1: note: 'bpf_get_link_xdp_id' has been explicitly marked deprecated here > > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_query_id() instead") > > > > drivers/net/af_xdp/rte_eth_af_xdp.c:876:2: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead > > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here > > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead") > > > > dpdk/drivers/net/af_xdp/rte_eth_af_xdp.c:1198:8: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead > > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here > > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead") > > From af_xdp documentation (doc.dpdk.org/guides/nics/af_xdp.html): > > 5.2. Prerequisites > This is a Linux-specific PMD, thus the following prerequisites apply: > > Both libxdp >=v1.2.2 and libbpf libraries installed, or, libbpf <=v0.6.0 I am in the first case: libxdp-1.2.3 and libbpf-0.8 According to the documentation, it should work.