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 83471A0032; Fri, 24 Jun 2022 08:12:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 324D540A87; Fri, 24 Jun 2022 08:12:54 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id ECD6940A82 for ; Fri, 24 Jun 2022 08:12:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656051172; x=1687587172; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=x1IuURqtwSo72yqqgbGt3n2naUeNKMXMp1RsRjW4q0w=; b=A6RpeCLZZBPY6htd25o8mhUbzEEKGVmDZmIjl1YJs5O5g4OmQjIMezpd f+xV2aY9UkZWg6pt5FQ0WD4/kKvigYDC56j3D7pr6SD/s7DIOUWWGkrPh H6XpCfVKF8ZplF48gkinPzzwwRLkoV1lSJW8DfTAeFJpxBl44scisPOlf izXngEGRA2RZogCzpr2B+YmmuJdB2pdFrFFVNRFA8187H8belOKRftRyu 9IhZf5nABVutlXJNTrvtGmU4tvB3+NYMSO+ery8ZBB+NXn/GJmfsFblFM APOMYFIkdBn1KSSRUkRng5yxV9h/CjWB7NVHKwz3E6+Fy+SeavhoIPS0R w==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="306397840" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="306397840" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 23:12:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="691391307" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga002.fm.intel.com with ESMTP; 23 Jun 2022 23:12:50 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 23:12:50 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 23:12:49 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 23 Jun 2022 23:12:49 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 23 Jun 2022 23:12:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Su+nhxq1fqKBqKAAig/u6/+O2O8vh56JPQi2AvWvUOSpQLBmUDmPWB3pZgptcC2NnQObDuV+3abEg/UpKCzXh5hBeeci073IzO1nbzitlBD+GCYkibGx45wdkcM2+yWdHngQA9gw3S9by2XcklrnSUvsujW0Q6u4IPo9q27HGev4SNw/YZ48ARlcaWJguoPM7rBYEzR9uhWCp0QMUQF4pMvWudIWV7223zo4RqZHCvXoUlC1kmaMhtDeaBLVmyl2nHfZr7/2m5eMcbSba6/rXEv/rZkrowzqckUTUUSoS+9Tieew4PIwH+DNpHgNXHFo7D4hTKvY3L95Xb4cbhj0Ng== 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=tsnFrPcEARiKiYBrqw5ss7Gk2UvgakqZx48rcSFklvs=; b=R5k9D3KL8GZnNavACTEH+qnLCUO8vqtUbhWEnRzmNwBw7Tb6oIwv5BnIB8ZMSvhfQKNoauzoknvIFi2JUZmSKrQam+dHT7WC9OMjm6QK/oIZ3xYrvnY8SP0fjXkY7tIxGQhC63tHsf7dbOcPSOKINtv7joCFfeFeEDOZrCQZJ6y2DtqdRN9nHMFhy7kWkjESEG3ldBdTHSDVzKmrFtQUuFTM1XP5nGGp0GiJt3HYGC2h7uhJD7Dtwf/+3tFVrxW1HufJ6YowlRIDX5z96gbhqeJPavfOuWfIdDhgQau0r2hCiVv/JZ73bYgYWb9uuOLVfnRTi+uvaC4GyHLFkXLn4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by DS7PR11MB6013.namprd11.prod.outlook.com (2603:10b6:8:70::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 24 Jun 2022 06:12:47 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::24ae:1cd3:3192:4c7e]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::24ae:1cd3:3192:4c7e%7]) with mapi id 15.20.5353.018; Fri, 24 Jun 2022 06:12:47 +0000 From: "Loftus, Ciara" To: Thomas Monjalon , Ferruh Yigit CC: "Zhang, Qi Z" , "dev@dpdk.org" , "david.marchand@redhat.com" , "ferruh.yigit@amd.com" , "andrew.rybchenko@oktetlabs.ru" Subject: RE: af_xdp + libbpf 0.8 Thread-Topic: af_xdp + libbpf 0.8 Thread-Index: AQHYh0xtlHMK9HTlykSp/YoLhAwu1q1dj62AgAA0mICAAE6PIA== Date: Fri, 24 Jun 2022 06:12:47 +0000 Message-ID: References: <3707170.uoxibFcf9D@thomas> <4c546c6c-b51c-37c2-4a4e-5e471e5b2a37@xilinx.com> <4227833.0vhOF50zNu@thomas> In-Reply-To: <4227833.0vhOF50zNu@thomas> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1899ded1-6ee5-4f7c-c025-08da55a88f88 x-ms-traffictypediagnostic: DS7PR11MB6013:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EPrAD7Ss2/U3xbmxgxMInGbZnAZJkdectDo9+2a5AHbo6yEW/VpXg9aD7Ojy+saDdgsPY5FMXIwbF+/Ad8VqEEGdBO68g7L2F6+3PUfvsybinDEdvRfxEQtrUYgCDID1nia9N5/OsBHIJPmKBLNLWN6SNOOQ//DkVOK2x9dOEn9C2yfKQKB9EQFrC/cGMWIgzNB47uskvwnpUU7KIa2yKa4K4qL0ipl8SjRRTtdvC9p5vWsBBDS4OfVl67NEbpCpJTTEpe63wBn/iaU2yTpNgYwQBi5xcIgHaQFEk1KjojYhyZ3OeZxideOFwoOEaaBYeqnjFeH3tCOAjl0P/Ew3NEEZXeyD+iX581kD8DgfsPjcC1GwYH6NfZ1zohRz6mBRmiOWvGNNBse+RaV3nTrm31myqsEHEoFD6Fnnzz64iAH6zzNSIZkSxH6bdOJaZx1zvx910FgyB9Cy3mw6ahlXoMOM4IG/+44wtATG9kuv8rKiaap+TiO/arrO9qZBoDhk5hbEd/t9Ga9c2XClQcuqtNKljhdExsm4D3Lq+i9MUf8vaHuvLFkFBWqWSEoy8qPVM5VfELzjjqJiIDFivWI9FtpzC2PTUiQ7bC9ej+7RndiaLPytoZxIdI64DIs1AUKOU3bULduluNPxQNH+T6GrXfrYNJB8zGGh11L766sV9wiQmIFxhavfc0337sjfytkmaXT9AcJxHhNxhvq/fTl1mZnIPvG0MdiPY+UICgYyk7MkCO2eRNlzWnXX2v/Dhf9GMTGRJCQPqy35vDD8EDWTcen3V3Uc/kPW+sXvyA60v2Q= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(376002)(396003)(136003)(39860400002)(346002)(366004)(33656002)(38070700005)(38100700002)(52536014)(8676002)(66446008)(8936002)(9686003)(7696005)(478600001)(82960400001)(53546011)(76116006)(6506007)(122000001)(186003)(55016003)(4326008)(316002)(86362001)(110136005)(41300700001)(64756008)(66946007)(2906002)(66476007)(54906003)(71200400001)(5660300002)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fGYuXJSwpDEuuYKE+khWhuAj+0hnp1ZYPSlOKplSqNaKphQzPOoYkvLjR3YB?= =?us-ascii?Q?jSahWJUgFaxyFuS7KS5uuFxAuHLW2CXsduEnz0M0gkEq9EtkMCGbCMppZEDf?= =?us-ascii?Q?0/Exu7zu/kSPGgiiAt+vcGiynQ71mu2Ly936OvDk+eI4xqIdGrimznEYJ5vB?= =?us-ascii?Q?anX120XTaJj6rOg4+KyZczMm5JTRHHHOXvojprXjOLr3uorD2RgnC9J5kngI?= =?us-ascii?Q?ZdY+QDJvFzVNXJoNxMO+k583Gupr7KMN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?= =?us-ascii?Q?A/ChPcaViNVOVMDnhQYoDiDr8xRio6tTVNgQIxhIAHBASKHGEgYLLUvwef/E?= =?us-ascii?Q?arXxxj3F5GzP2AMuuo0qeeNbKj/o/Gqs0trzgJo+aN0O5JV+CZnbEyzpFdtZ?= =?us-ascii?Q?KF23LQLLlz3GhgwG4ocOJonC/g2MbtzNfwuiS+/zJWK86uT2DHkV1uryoSXu?= =?us-ascii?Q?KS6LNE2z2piMgaEAnY03u0yGQpeOjEysGwg2up30JKjvk+zzKfzXMIsXbVnd?= =?us-ascii?Q?GWaGAr4EvyuV46w5zT5ukOpB9+Lcl0JUxWWYgzb5GVi/jKsbEwZfOcOdSc7v?= =?us-ascii?Q?RFujWiuWkVX9v4tl3TK2rXdcwmKdw1Q+MZBTi7cj8SyH/s+LQNXCq1O+76pZ?= =?us-ascii?Q?htQ1B9iTK1eY0q+PTx7dKMQb/61L9FQ4tit3DlIxwffSO8bQdqDvCs4ypYTV?= =?us-ascii?Q?XBz3/7MNLogoERfwtyVXLTQk9GKAMGSgcJ5d+isxfyZgxbuWS58rhF3eQ4h9?= =?us-ascii?Q?rzJSyouofgtJK95Q7BRHwSVE9iAcukRlryhAJ4+900BH?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1899ded1-6ee5-4f7c-c025-08da55a88f88 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2022 06:12:47.6848 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MPuY937EDFK0rJ6SMIZmtf1qvJg2kmkuYdgfxl7Uc3YCeF+Idfl/cYYV+qqVop5Dqr1gkCJwrcC0nl/DHSoPEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6013 X-OriginatorOrg: 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 >=20 > 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_i= d' > 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 bee= n > 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_f= d' > is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead > > > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has bee= n > 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 bee= n > 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 >=3Dv1.2.2 and libbpf libraries installed, or, libbpf <=3Dv= 0.6.0 >=20 > I am in the first case: libxdp-1.2.3 and libbpf-0.8 > According to the documentation, it should work. >=20 I submitted a fix to prevent linking with >=3Dv0.8.0. It can be used until the more robust solution is ready which requires a bit= more validation. Thanks, Ciara