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 7B41EA0032; Fri, 24 Jun 2022 00:18:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 276CE4067B; Fri, 24 Jun 2022 00:18:22 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by mails.dpdk.org (Postfix) with ESMTP id 247C840146 for ; Fri, 24 Jun 2022 00:18:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UV6oYYYL+tN0bW53MkQQy0R5DnzzvRlBN3yu4pvv4uichc25c7ynyrPfYX8QEwD4nNXHaqQrHmJELarY6wgRbK7cJ95fAUDNgxs1hx4Jwutiq0OE6jLlzicQ1fwxlCAul1n0J5+2l+o+0N+79JpetSi/xo0j7FO5B1WhMajeHzuPxSgJ/Tc6+IV4pMpaEYjlcbHKd1RjBXDLKm0YYvdDlbqgktyJaLuDlX7tggl8AWWOn8YEg/YQBOEL7gJ0jlisZMaL4j/uHszO1EMLWHl1B5Oz6pp/ZXxWFnssGgp5Q/6xoMc2dV10REkXUuKdyj7VDLbvoFVBE5hhLmf8qfVLXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6gdl0ds0vZ1162/SDiGz8hLIlj07jjyv+vWQRbzKQ2U=; b=IeSnONGZMpFULMiMU0ueQNecoi8sAnVjD4AAAU0J/YLdUb3w/sDZMjfZe688E495B08+iFqJ4g1/wWdpFdvXlFPVeEAcyp3N85J274wGJkAZsLW6qGrbtompP53Rf22w/fWugV7v4G5p0NllORM0g8Txw1EGldwVfYyB9vDBq275m/qiDHjlXLgMH5Itz5UPceh14dJUigJcFAlRJICiIJtjOVSFQMNs9y9cKPTnzsGErPsNEagAN0Nt54xHqQymhPtvu1CHs+1OHehJPy2WNcqL8rqWFowWqViYBXhWrZYDjnlZ5YjLCOTM289cHU63IMpICFkJeD8wrIesgFnjPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=monjalon.net smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6gdl0ds0vZ1162/SDiGz8hLIlj07jjyv+vWQRbzKQ2U=; b=NFuNiOt/jzqa0xm7wS0pWHiJXwm8TUi/o9gLavHV4iQIK0oKh+p/TZQUERBBoWY+eUb+X/P2iC4LtO3VJ+dYrWW6AMSDyJRCyXg4RUo9cpOAUPN+wWX96oZULsRSRqCbb8Xetob6vO1HiXZVdsY3YILZHn4kdwYtk4No/KTPg8E= Received: from DM6PR02CA0079.namprd02.prod.outlook.com (2603:10b6:5:1f4::20) by DM6PR02MB6907.namprd02.prod.outlook.com (2603:10b6:5:258::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.16; Thu, 23 Jun 2022 22:18:19 +0000 Received: from DM3NAM02FT044.eop-nam02.prod.protection.outlook.com (2603:10b6:5:1f4:cafe::27) by DM6PR02CA0079.outlook.office365.com (2603:10b6:5:1f4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.20 via Frontend Transport; Thu, 23 Jun 2022 22:18:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch02.xlnx.xilinx.com; pr=C Received: from xir-pvapexch02.xlnx.xilinx.com (149.199.80.198) by DM3NAM02FT044.mail.protection.outlook.com (10.13.5.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5373.15 via Frontend Transport; Thu, 23 Jun 2022 22:18:18 +0000 Received: from xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 23 Jun 2022 23:18:17 +0100 Received: from smtp.xilinx.com (172.21.105.197) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 23 Jun 2022 23:18:17 +0100 Envelope-to: thomas@monjalon.net, ciara.loftus@intel.com, qi.z.zhang@intel.com, dev@dpdk.org, david.marchand@redhat.com, ferruh.yigit@amd.com, andrew.rybchenko@oktetlabs.ru Received: from [10.71.119.54] (port=26311) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1o4V9V-0006Wi-Hu; Thu, 23 Jun 2022 23:18:17 +0100 Message-ID: <4c546c6c-b51c-37c2-4a4e-5e471e5b2a37@xilinx.com> Date: Thu, 23 Jun 2022 23:18:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: af_xdp + libbpf 0.8 Content-Language: en-US To: Thomas Monjalon , Ciara Loftus , Qi Zhang CC: , , , References: <3707170.uoxibFcf9D@thomas> From: Ferruh Yigit In-Reply-To: <3707170.uoxibFcf9D@thomas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9444fafd-69e6-4c1b-9b41-08da556646d5 X-MS-TrafficTypeDiagnostic: DM6PR02MB6907:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cWsFJzlfPmC6PiQVvIcAfM5YEEInFph9o+nkzuBOq6M2TgNxuQXTfdIy1Q49ijWnO2c4EmJjplRM0c3ex0fYfjR/oSPrHwk/HmRyCZX0VSv1hcsUX3ydhmYLlGyq0rqVAV8EeznD24ue94Q4Di3fONJ+K8CFckrCte5rxnrdPnyzmrW3wdaB+BISTke1P16LZGa6Qgm4CrI4uGldKAnf9bt2y+Y4bNzAjVbhC3Jf6iG63rdEEGVHJagtQLHEt6KP3ZO9bnfMJJf3PuzBupIGUp3OdxJpXLpW1Eh9p96ipQEv5/LAloCO+PoBPVqQYaiYWEuPE9JK6yasmq84FbH5pmjUGTB+DedJcGMPVSpUhf/h7jS5V+gha7Vz1y/ux8+Le1mE2cjcxSJw9289tNUUdgYd/+MqxoVjLjj22Hzjw/lHUj6j0OAMZtsUea+oeBBFZCU8bjJnhyUF2WhZDqaGQInAr6zhObIylIxZy+9TdAmy1jjb0kABgm+I21DlBtZ7R/BZh9LiAavUlgn9ZX0uXQWxlLIJfGly3X9JpfBpw1awsYIIJRbWnrarSSYWhg94Km6APcw1I/Hw4FdSc5Td9rVa0eBAMAm2DIkipYpgKFXcFJOI2IPuApx+wJQzJyxjOyBxJKarJ6kCJ77x2oVLv5hZnAZseOrRKt3LVGc6gJyoK9dHEp8nsDUDQlqkm0kwztmSJW53/d+I9lYr9Was2sL01gefZNot7RJla6MrNYpjR3m58ZeBEY6DPHsqt+MBiPlOnFklIM68MaOxJPUUzAGGXUnpr7oUSEb0RY+2EU50dWG5d60iqT2j6QMGx+kqjspI2xkr1AfmFzb62OasekzLLqdiKxQRAzJ93Ex/BYE= X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch02.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(376002)(136003)(39860400002)(40470700004)(46966006)(36840700001)(110136005)(44832011)(40480700001)(36756003)(41300700001)(4326008)(2906002)(31686004)(70586007)(9786002)(54906003)(478600001)(53546011)(82310400005)(316002)(70206006)(8676002)(8936002)(5660300002)(426003)(47076005)(26005)(36860700001)(2616005)(186003)(336012)(7636003)(82740400003)(31696002)(356005)(40460700003)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2022 22:18:18.7432 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9444fafd-69e6-4c1b-9b41-08da556646d5 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT044.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6907 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 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