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 921F543B74; Thu, 22 Feb 2024 12:05:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B776402D1; Thu, 22 Feb 2024 12:05:57 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id ED68B40281; Thu, 22 Feb 2024 12:05:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708599957; x=1740135957; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=FkNaAZjaNSP8hQFDqz6RK4IIDZ56hlmW/ZmwIb4z2bI=; b=AziATTpnFsT/HVBBh0f6VewoeGdblEd+Hhfw1N3S81GAVbyWL1Q+w3+N +z1pz8DqYrmPcWBBiksEvuDFP42eSoWOxFOfziE0W+OLpDJQM5ME/wcxu lBKXlEb2Irh/3wsIYvpFXyG080hlR8pkTd16v3c/qaZgcZGeteTYJfNbz Ia8JDG4od6Q/4v5R2HYtdrRx518P05rA+JpHFTJQs1HYEN1TUN53uQKHp RLa6n5n6mMVFCI1YhzrIy0rj5TZ2N24PY7qQ6PvYsiEZGEOYWSPbKTllB VFbNRvKWzgK/uPXN27EIdWzzl/URFf7YQtoB5eYL8bfPvz4w0zEFIN3h9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10991"; a="13946788" X-IronPort-AV: E=Sophos;i="6.06,177,1705392000"; d="scan'208";a="13946788" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 03:05:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,177,1705392000"; d="scan'208";a="5845384" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 22 Feb 2024 03:05:53 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 22 Feb 2024 03:05:52 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 22 Feb 2024 03:05:52 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 22 Feb 2024 03:05:50 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MaD+1Q4c0JAXC8vXMHNedeKhWnk+R7f+haZKE2V0E1FEMBwy+7y+198r43iEMphU1cND9TOQc/BTiZdagY18t1lohuVV+UyOh4ChUYT8zYi5oWp/o05769Q+mC3x1cjRZM6dXdRpoUPyxLThojtxZnrCsMBKg7t3d8HlZD8r1vx/pxEDgtOkbmVAH1LJwabeg9AEhbBAvVCkUhNaVviFtp64xbX3gzZ+r1+OnumW588/ajTklvBNff+nm7TzR98ft525+S2UyvkpBdvARn93T+DlYAXvMz78FzIYpOl0Amx1w8WGYhIT3ZJ46VyEAMo+PvIpiGq+qNjBkRJWbkRcDQ== 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=FkNaAZjaNSP8hQFDqz6RK4IIDZ56hlmW/ZmwIb4z2bI=; b=YFOHy2BonyiVHUmWH4PVqMqFDk+E/Pkk/Dz1YZCRoWYfH/JrCCM1f48TDdRYe8CMt/ZQueb4ahwuqdedXnLXgTHGwdMNR3eeYyYMlB6KwOZQpK8VIwK1WME7zJ61XjTBwZuQstRfdranfaFyAEBnnBJLFjckLod87FmJWmghSMApVWZsj0oS+2DLRE+7ifumm56fjxkjszdOz7VYULkn9WDt1vxkKJ72QyK6YUj5qOpxE7d3CT+P1nlZdxg6MMBhcGPNikKfsBVffFUGyrmqH1hG7Pb/iyLcDaicU2sf8VsVBbPh/Do/rehEsD+ZTWsGkgcL+Xclxcj6XMMopHcmpQ== 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 CH3PR11MB7865.namprd11.prod.outlook.com (2603:10b6:610:128::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.10; Thu, 22 Feb 2024 11:05:42 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::92a7:f6a2:9262:d150]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::92a7:f6a2:9262:d150%3]) with mapi id 15.20.7316.018; Thu, 22 Feb 2024 11:05:42 +0000 From: "Loftus, Ciara" To: "Tahhan, Maryam" , Yunjian Wang CC: "dev@dpdk.org" , "ferruh.yigit@amd.com" , "stable@dpdk.org" Subject: RE: [PATCH] net/af_xdp: fix resources leak when xsk configure fails Thread-Topic: [PATCH] net/af_xdp: fix resources leak when xsk configure fails Thread-Index: AQHaZTxbgfHuXE+sBEGiCHNFch/n4LEWH9AAgAATXpA= Date: Thu, 22 Feb 2024 11:05:42 +0000 Message-ID: References: <1708571262-48380-1-git-send-email-wangyunjian@huawei.com> <871cc85f-2042-4e1e-a705-1c18fe60ecce@redhat.com> In-Reply-To: <871cc85f-2042-4e1e-a705-1c18fe60ecce@redhat.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5872:EE_|CH3PR11MB7865:EE_ x-ms-office365-filtering-correlation-id: c4afb8b0-ef94-4dda-1c82-08dc3396361f x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oZ/99W0V3XUndwTvq8pG4F9/AC3o/Lge9kBZhKy+8U9gf8cqfW63jiRmuqBJG+gWnG3v179/WvHEn3hzaom6RI4VjuAZkSzadKnp3mkQrtWPlQMJngUa6KKaV3ehE0zI1PAoEsIuAztJ6bVhS+8pZuuhgN/kPIxun1bH7dByQ7/RJYmKNIAHe2oonLPgPt/9f9BZBGcrv9mprARJX4AvTgx2nT2g2VTVelUKB9AA1NMXv53ncJAFOz6tp8iiNs0wYmRAK037ghFFW71Y9XboUbyvwN7FAw3AWKRn4njJxiDUMH7NNIek3Xo9GOvF9BnesI4cmXaG0icFWd/wduaACOIDm840a8//66y1eGMLAc7cz1GAfRQtQRxyvBNW44G7/RLXbz80ZDez7mgRf1gdqsTmwaYx4wwKjU9LJldrpiIBb8hfEpFZtBcLlI2vW8Yt3gsyda5jT+Mjl5aOdI6l14YbPDPW7EnqlBUJ7gMlA/sS70Hlj18jyclwSQLR+TjejkYsvSvtZhK/Va9NCV+qghLrSTva8NXtMa8fAKqjiAea/2dxxGn3mh6uB4VtpubB6J0crBf7A8hQle7P20lJTdkdyMtjxyIYaKqKuQiSEL/gc9UwdyhLeG+lIEtDOVvw 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:(13230031)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dyt1VDQ4T3BSTWVxanJQWm9Fc1dEVzlCR3pQV2k2Zm10dXdlbzViaW41aVBh?= =?utf-8?B?eWhjc09vOFZCd0d1NE90RCtNZkdKUnoxR2k4SkNPaEhaZ2FmQ1A0dzFKWmtC?= =?utf-8?B?b2luc1N6Y3B6L1JzbUdWeTlwaHhNdS9BOEp1S0s4bXdDQ3BZUDdYVkcxNXpH?= =?utf-8?B?R0s2OW95OW0xdkdFcVBPeW9MbDI2T3dubTdGOVdESGc2MzZQNWpLeVg3aVpr?= =?utf-8?B?RE1iYWdMT3Z5cmZOUUpJU2FzS044MDV1cndBK09VTFNneFlMV2s1aUVpdE1Q?= =?utf-8?B?YnAxdnJobDNqVWNyT2JBcHJ0bm14SHAvT0pKNzFRUmQxZW51WW9qY2RnK09n?= =?utf-8?B?cjgySXVIa0kycWVBYnVwN2JnMi9IaXlxK0txNmVrL3plN2xkTzhHK3JJbklk?= =?utf-8?B?K3kzNUhSNjBxWTVMOEwyQlFRRENMQWZ5VGFqTlVOaUV4RjI4NFZVd1hKNExj?= =?utf-8?B?dERCcGU3Tzg3V3pOaGxVNnNuUkVGTWprNnh4TDJyV0lsMlh5c05DNWEzSFhB?= =?utf-8?B?TWdYLzV6ZGVSYlpmTjJ2TlY5RFhVL2ZSNDJRQ1pqRHRVSlp6ZHdrNlJNVE16?= =?utf-8?B?ME1NQlRTYmh1WlVaUU9vTTBoemxnUkdTT1NRQ09tcDA5RmdXd3E0M1pWRHk2?= =?utf-8?B?MTBYcng0V0drclE1QU5XUkc1Qm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B?bzA2Vm0rMXRFVzUzelNMSjEyL2RwemwvL1JMVm5JeVdmK0lBUi9NbjhCR202?= =?utf-8?B?bXZjUEdtT1ZGbkhTZ3oxYUxKTVRuVm5TYTIvWXdHWVNFMm5BK1dZeXl3RkR4?= =?utf-8?B?N3pPajA2bkFSanJOQ0ttR1l6U1BqUVc5VzdXZTdZTEJLakdzOXltMFJ5T0Fv?= =?utf-8?B?bGNsTGxZWnFGUHdRM3hOSWQwU0lSbnBqMmNUc3F4bjdyL3FkL0VhODVCeTR6?= =?utf-8?B?Wm93N3I3eEdsR1JpY1A5bzcxQWtBVVZHaC85QVhSdnUxTFpnRlIrUFRPOE5o?= =?utf-8?B?VG9xblFBZ3RRcUJJMDlUczZlNlhkRGxsVndBci9iY1VMcHNhWkRIQVRCZU9l?= =?utf-8?B?b09UM092czNpWCsrRTJxTXV3VW4wMTNNUEZQQTVvc0xFcUhTUlRhZVEyZGly?= =?utf-8?B?RXk1dko0bEtEWVIyR3VqK1Z6MEpEMGUzbGtMTnY2bThqZzFuMFlzOWJRbW9s?= =?utf-8?B?WXB0SE56N0R4dlhYNWxvNFNCRCtjSVVZS0RTUGNDSzF1M0NWYWNPdEpDVU8v?= =?utf-8?Q?O5K0pTHv+OBOawRPzIDu1nB9G?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 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: c4afb8b0-ef94-4dda-1c82-08dc3396361f X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2024 11:05:42.5783 (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: UHWwV/vbCV4Jc6Alyacw4Z3/bG+2WaXN/Rz7ymKps0Z/WnnZJ/0Y8QI4zFjvjUq6nZtdN/OzcRbtYeokc6cUdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7865 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 PiANCj4gT24gMjIvMDIvMjAyNCAwMzowNywgWXVuamlhbiBXYW5nIHdyb3RlOg0KPiBJbiB4ZHBf dW1lbV9jb25maWd1cmUoKSBhbGxvY2F0ZWQgc29tZSByZXNvdXJjZXMgZm9yIHRoZQ0KPiB4c2sg dW1lbSwgd2Ugc2hvdWxkIGRlbGV0ZSB0aGVtIHdoZW4geHNrIGNvbmZpZ3VyZSBmYWlscywNCj4g b3RoZXJ3aXNlIGl0IHdpbGwgbGVhZCB0byByZXNvdXJjZXMgbGVhay4NCj4gDQo+IEZpeGVzOiBm MWRlYmQ3N2VmYWYgKCJuZXQvYWZfeGRwOiBpbnRyb2R1Y2UgQUZfWERQIFBNRCIpDQo+IENjOiBt YWlsdG86c3RhYmxlQGRwZGsub3JnDQo+IA0KPiBTaWduZWQtb2ZmLWJ5OiBZdW5qaWFuIFdhbmcg bWFpbHRvOndhbmd5dW5qaWFuQGh1YXdlaS5jb20NCj4gLS0tDQo+ICBkcml2ZXJzL25ldC9hZl94 ZHAvcnRlX2V0aF9hZl94ZHAuYyB8IDQgKysrLQ0KPiAgMSBmaWxlIGNoYW5nZWQsIDMgaW5zZXJ0 aW9ucygrKSwgMSBkZWxldGlvbigtKQ0KPiANCj4gZGlmZiAtLWdpdCBhL2RyaXZlcnMvbmV0L2Fm X3hkcC9ydGVfZXRoX2FmX3hkcC5jDQo+IGIvZHJpdmVycy9uZXQvYWZfeGRwL3J0ZV9ldGhfYWZf eGRwLmMNCj4gaW5kZXggMmQxNTFlNDVjNy4uOGI4YjJ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