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 10909A0350; Thu, 27 Jan 2022 06:24:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8BB76411ED; Thu, 27 Jan 2022 06:24:07 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 4A5E64067C for ; Thu, 27 Jan 2022 06:24:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643261045; x=1674797045; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eKtkat51imaDmyAlldoOJo2yoTNoDLhAQBWzcTCt7jI=; b=eVEVWssbxQZ77IEsk2fOirGK5dN0DM4R/GXzcabxJAFzhmE4C0XglxpN vyQXFwmsGvHipq1CKhVd+xXxnBcBCv/Jli6PTvl6BpwZz9W79s8UZX5s8 pFww4EzVG/GZxnwj5sNrHPzCX9xJunM/ub/HSuE6tq8mbX2QorfcUOoZm Mz2sdEn8SszTT6xv2EcSsgFuy/5FdeYlHwh/Cm1JEYkNsJUNzabVQlFZF 6fAjr/VLTa7WDZdrasibRXsI0rQWhwOrXzmh0Vy8+JdyPAuLuJlBW5M+F H/jFqCEixOxQ+6EE/Epo4Ceir/W+wrrxpuXMDFmkqSTuNu2jTBrS7Gtjy w==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="230327649" X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="230327649" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 21:24:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="495606984" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga002.jf.intel.com with ESMTP; 26 Jan 2022 21:24:04 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 26 Jan 2022 21:24:03 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Wed, 26 Jan 2022 21:24:03 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) 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.2308.20; Wed, 26 Jan 2022 21:24:01 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gMh4AzFPhfNQGsDevHoG08SBONW8QVwROgWceGXSylHxVVPU63IMy4pjooOPpuHdyQG9J0L72+Z3ppwAbpa6eiQsl88aXMoUf52FBegq/zlvv0OV/KUdLQS68VOiWwjCoNH8tpFoDYeLpy0vYaa17rj9dW+BpvsxbdL3FxCICUbmAbzYsH87Uad+eVi+c0Y2FVxoWxadJEKOqZOFETjeR6YBlE2SWEgKLVULqe5FWaPEGgMVz/fbaNXu1n0n57ZrpWx/v8n8yjL3FvsFRuE40fNyoVrf0tSgMAwYWrsePbw0WEM5rvaMH4TsbkWofFGOvdcAGd+E5ozzicQ9WrFgSg== 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=eKtkat51imaDmyAlldoOJo2yoTNoDLhAQBWzcTCt7jI=; b=Gpq7xFCDfhdQ/BJny1AH9B/2qyhBABjQAZjFgYTm8SKMhdbR8jBsevzsk0Tp7pR/97Hx2YvuB2rK8/EkWZq53Ypcw4+WvGpbrAEomPM65o8bT+QMJZWFd4dxfPeWeniVIbz0irG5/KiSdw2nAjkAZRMxfT/MeTy5pRno17KLRAgwDaVdHTYU3OtIr5y2nXZFPBCHxbUEMt7YPEpwJA713j/2uh4BNXoKXxaSKrWosNxoxCQ2za1OSammu+NZL1HLQYcUjnnaXHgP0Co0r/XE1Fek+vEMDVWSXAll8hlH3hTuLfBnebV4iS+BRRd8t6IE2b6NUs2getO9hCsZ+AyXZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by DM5PR11MB1546.namprd11.prod.outlook.com (2603:10b6:4:d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.13; Thu, 27 Jan 2022 05:23:59 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::9d80:4063:d2c8:5c8c]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::9d80:4063:d2c8:5c8c%5]) with mapi id 15.20.4909.019; Thu, 27 Jan 2022 05:24:00 +0000 From: "Xia, Chenbo" To: Harold Huang , "dev@dpdk.org" CC: Maxime Coquelin Subject: RE: [PATCH] net/virtio: fix unreleased resource when creating virtio user dev is failed Thread-Topic: [PATCH] net/virtio: fix unreleased resource when creating virtio user dev is failed Thread-Index: AQHX97emBfHuICGe10eyNBc8e9pw8qx2jHBQ Date: Thu, 27 Jan 2022 05:23:59 +0000 Message-ID: References: <20211220124100.1307675-1-baymaxhuang@gmail.com> <20211223044237.52037-1-baymaxhuang@gmail.com> In-Reply-To: <20211223044237.52037-1-baymaxhuang@gmail.com> Accept-Language: en-US, zh-CN 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-office365-filtering-correlation-id: fa44f1f1-d7a0-4eea-c464-08d9e155395e x-ms-traffictypediagnostic: DM5PR11MB1546:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UE8wuKmgMeY0BMenFCKKbC13i/tMthjYxIyU9YKsQAmFmMVn8ILsq12OCSREnaxWCNLnbGrDAuE2i2CHi2LM5DhlSKVWKPi6Th04n71bT/2tTVTaqBxr8WzzqjGV4L1b1xzHc2y7icgB6CtLikarRVwT+w7XWUXq15+PQtkfQWJQjEOaerbYmia/t21NXKiqJYhkANJWRf3DckZRBE3aUSLAkZXKDKNdFECsG/INh8tsS58M0aflRV2Pkb9Jf4yeq+iu+U0QwNF6OKmKkqVuJuTXWtdvI6nYA3GPMT7VaBjhyCx2xpg2Rg2CI8EfB9jC2jYq4lbMUxJ1r4i+zzN8t3q+i+qWCnea3ZyW+CqJdRDPCJ9iZxx2TVT+G1+g/ZZ1go+DBWvtPyyLIo3m1rBfWejvK+8jJLRpy+1j6QoWgSOq/8XyK2yaw13iEUnUny/8kIx+1ACRpxX4eanbDEGzCDcIU/9OV8if3Jp0oK6F2jUBQzafctymxvxXnTizoS+C/akFeDwfZdXesNZ6U2QWfiqWvN1hYlHKr/EQwO461z7wY7gJVaZsassqNIymHUaiMcahiT7EZ++HaqcnzGIA/UxajXgUI6QWq2lN8RVHdqYoiag8y035+GOXyCOQJpPLCj6bobGz0AvsQS8CHIjOqT1whYAfzJa/+WvE+FwQOO/iZyipjAauflA2cipMMaHaYx4YNK2UGHiAcW7RZcJF1w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(38070700005)(26005)(71200400001)(66556008)(186003)(33656002)(9686003)(86362001)(83380400001)(76116006)(2906002)(38100700002)(122000001)(8936002)(66476007)(82960400001)(8676002)(55016003)(5660300002)(7696005)(53546011)(508600001)(6506007)(4326008)(110136005)(66446008)(52536014)(64756008)(316002)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NDBPUDd2b2Q0L2x5NVRDN0pVWWlidEtRS0tFNS9qWm8ydFQxVlp5eW5xdWNx?= =?utf-8?B?SnhFeTgwSDZvOUd3OFhwY09DNnQ4NWJmS1M0MEM0NzZYTGJFUnJuc3Q1RG1V?= =?utf-8?B?U3phVWJFSkhzWXdXeGpmZG90NngyYzZFb3dHNTM4U3ZZbDhsZlNiaEM4RHha?= =?utf-8?B?UGxJbC90TE9VZ3NYUFVzOWZxaEVIQlQ4SE5sUWYvMVIyTzZqQk5oRTdKVS8w?= =?utf-8?B?c3RDS09OMkptNHVCWGxYTENPeVNOQi82WWF5K01XT3dhM2JUeU1CZmM0WWZa?= =?utf-8?B?T00rS0toZWM4UFVWbHhRczkwQk1UV1NrNjk4bXRMVC83NVpJRzc0bjZ5Yzd5?= =?utf-8?B?dnJ3Mzk4TVZkaGxCK2pTTVNDS3hiOUVwTkRpdDBPeGtzVmpiQUlvZ0N4NXFK?= =?utf-8?B?TlBnMkZnTE1YMjd0WnNGTS8wVEliQll3RlZ1Q2dyNElQOUVzbWw5bUhDRVhP?= =?utf-8?B?dTNmUGEzNU1MZUNwcGpsWDNLVHM0NXNyeEdyVE9GSFNxeTI2blpjcnVaY2xz?= =?utf-8?B?T0g1NS90QjBEMlJlWERjWis2RUhtNUVWemdxYkdVM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SZy9jZ0FNOFFFaVZHL2NXTEFDblpRcWM1dDlZ?= =?utf-8?B?VGpwajNQeDJoS0J2N0Z6a1ltOFNRdExEbDdPYkNGdm5PSXY3SjNxaE9VL2ts?= =?utf-8?B?MU5WaE5xanRianVxNkJxOE1MUHo1ek9oNGJtYm45SXozV2oxWlNjTit3LzZF?= =?utf-8?B?blcxblVVb0pjQjk3YlRUUFQrclBaZFREc1hRWG1rZDRPYUtmTlhoNmdudXdv?= =?utf-8?B?K2IvYnNyTldEckJKTkZVdGpSS0E5SVZua2NRb3ZMZ2pmcG9sUXREeVU5Y1B2?= =?utf-8?B?QURTNUJzZG10cUF6T0theGJocFowYmMvbVpiOHF3akk1YWpCalgwalh5QzVj?= =?utf-8?B?c2ZjQWxyNHlyMUk1NFhlTTN4ellyK0RaM2pwV1ovMmxpSktrOHFOWnZsN0dp?= =?utf-8?B?dmdpckxsSTFOQzN1Z3FTMmtKMTRZNk9jWmwzQVlRLzhsYWx1aWs2WlBpSlpK?= =?utf-8?B?ejFYQVlsWEI2Qm94OCszTUljUjZJbGhtSitqeEhheGVPVmhUSlF3bGcwWTJm?= =?utf-8?B?L1lENm9JRVBkZU5lZmg2WUM0ZW9BTTk2TEJIellsSXhWN3I2TGgvUnc0NTly?= =?utf-8?B?QWZkZGFUQkxLODBERGZGWmdUcU0wVmxncXgvcWZHZ2NLRk1uVnZ1dkd6T1RC?= =?utf-8?B?RGZpZzBZTW1uVFVwZW42eHRkTXR4ajZUbWdGa0xoSzkrSXZ0dXB6aEYzWkxT?= =?utf-8?B?b2c9PQ==?= 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: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa44f1f1-d7a0-4eea-c464-08d9e155395e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2022 05:23:59.9992 (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: htvi5SDBGIGTIn/MrWCjxl7/bgVtplU+0Qc4Z2Nq2CuUxWQWyNd2YAvzP2FiR4ryitSKAo+ITrRRHqkDiIbPTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1546 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 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBIYXJvbGQgSHVhbmcgPGJheW1h eGh1YW5nQGdtYWlsLmNvbT4NCj4gU2VudDogVGh1cnNkYXksIERlY2VtYmVyIDIzLCAyMDIxIDEy OjQzIFBNDQo+IFRvOiBkZXZAZHBkay5vcmcNCj4gQ2M6IE1heGltZSBDb3F1ZWxpbiA8bWF4aW1l LmNvcXVlbGluQHJlZGhhdC5jb20+OyBYaWEsIENoZW5ibw0KPiA8Y2hlbmJvLnhpYUBpbnRlbC5j b20+DQo+IFN1YmplY3Q6IFtQQVRDSF0gbmV0L3ZpcnRpbzogZml4IHVucmVsZWFzZWQgcmVzb3Vy Y2Ugd2hlbiBjcmVhdGluZyB2aXJ0aW8gdXNlcg0KPiBkZXYgaXMgZmFpbGVkDQo+IA0KPiBXaGVu IGV0aF92aXJ0aW9fZGV2X2luaXQgaXMgZmFpbGVkLCB0aGUgcmVnaXN0ZXJlZCB2aXJ0aW8gdXNl ciBtZW1vcnkgZXZlbnQNCj4gY2IgaXMgbm90IHJlbGVhc2VkIGFuZCB0aGUgYmFja2VuZCBjcmVh dGVkIHRhcCBkZXZpY2UgaXMgbm90IGRlc3Ryb3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