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 6EDDF43B74; Thu, 22 Feb 2024 12:52:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8BB840685; Thu, 22 Feb 2024 12:52:29 +0100 (CET) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id 7CCB540281; Thu, 22 Feb 2024 12:52:27 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4TgWbT0jMxz1FL3W; Thu, 22 Feb 2024 19:47:33 +0800 (CST) Received: from dggpemm100006.china.huawei.com (unknown [7.185.36.196]) by mail.maildlp.com (Postfix) with ESMTPS id ED78F140383; Thu, 22 Feb 2024 19:52:25 +0800 (CST) Received: from dggpemm500008.china.huawei.com (7.185.36.136) by dggpemm100006.china.huawei.com (7.185.36.196) 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 19:52:25 +0800 Received: from dggpemm500008.china.huawei.com ([7.185.36.136]) by dggpemm500008.china.huawei.com ([7.185.36.136]) with mapi id 15.01.2507.035; Thu, 22 Feb 2024 19:52:25 +0800 From: wangyunjian To: "Loftus, Ciara" , "Tahhan, Maryam" 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: AQHaZTxOD880607DyUKSyLEtmZ+97LEVmbQAgAAT3QCAAI1IUA== Date: Thu, 22 Feb 2024 11:52:25 +0000 Message-ID: <749f6c543e88472282f578b2becd949f@huawei.com> References: <1708571262-48380-1-git-send-email-wangyunjian@huawei.com> <871cc85f-2042-4e1e-a705-1c18fe60ecce@redhat.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.242.157] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMb2Z0dXMsIENpYXJhIFttYWls dG86Y2lhcmEubG9mdHVzQGludGVsLmNvbV0NCj4gU2VudDogVGh1cnNkYXksIEZlYnJ1YXJ5IDIy LCAyMDI0IDc6MDYgUE0NCj4gVG86IFRhaGhhbiwgTWFyeWFtIDxtdGFoaGFuQHJlZGhhdC5jb20+ OyB3YW5neXVuamlhbg0KPiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNvbT4NCj4gQ2M6IGRldkBkcGRr Lm9yZzsgZmVycnVoLnlpZ2l0QGFtZC5jb207IHN0YWJsZUBkcGRrLm9yZw0KPiBTdWJqZWN0OiBS RTogW1BBVENIXSBuZXQvYWZfeGRwOiBmaXggcmVzb3VyY2VzIGxlYWsgd2hlbiB4c2sgY29uZmln dXJlIGZhaWxzDQo+IA0KPiA+DQo+ID4gT24gMjIvMDIvMjAyNCAwMzowNywgWXVuamlhbiBXYW5n IHdyb3RlOg0KPiA+IEluIHhkcF91bWVtX2NvbmZpZ3VyZSgpIGFsbG9jYXRlZCBzb21lIHJlc291 cmNlcyBmb3IgdGhlIHhzayB1bWVtLCB3ZQ0KPiA+IHNob3VsZCBkZWxldGUgdGhlbSB3aGVuIHhz ayBjb25maWd1cmUgZmFpbHMsIG90aGVyd2lzZSBpdCB3aWxsIGxlYWQgdG8NCj4gPiByZXNvdXJj ZXMgbG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