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 6C34DA0C4B; Tue, 27 Jul 2021 03:52:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC1B5410ED; Tue, 27 Jul 2021 03:52:55 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 87484410EC for ; Tue, 27 Jul 2021 03:52:54 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10057"; a="209237653" X-IronPort-AV: E=Sophos;i="5.84,272,1620716400"; d="scan'208";a="209237653" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2021 18:52:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,272,1620716400"; d="scan'208";a="664894632" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga005.fm.intel.com with ESMTP; 26 Jul 2021 18:52:53 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2242.10; Mon, 26 Jul 2021 18:52:53 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.2242.10; Mon, 26 Jul 2021 18:52:52 -0700 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.2242.10 via Frontend Transport; Mon, 26 Jul 2021 18:52:52 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) 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.2242.10; Mon, 26 Jul 2021 18:52:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DbfBBgGfHkM+V6sPzXLiauoJQkqq7B8Ijc4+42qT3ExyWAKEyONrxn661AhpP3vZWW2sWdmBW1l6mKSsez+4itjAYcDHJlieD2j+btbr6u9j7diS9hGhL4C1pcmBQOTisju5KEMuO7aUM8vREg5n0BDAJYiZcCkJy3P2dyupq/5/QN/kHgw9aAn/iQnIvVPVj+bVob46ub9uPMkE/cQpqxQXR+WTwUiR4K0jo6OpLztHPI3p88w/z4Il9m8ttphBzwIa2nmvFhj0Ci/aIRQR00COk3/D2lOFNyuNkdgq58JPbQMMBlD5ZBdjHdKmWQEMnFWV9MRObaGDOiz0fCDvaw== 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-SenderADCheck; bh=34LHZ5MEK8kK8AdOBWKNqJWLudIiJdbMf6h25EY3tmU=; b=Ox/Re4rWs6x3Dz8yO4FBCydsYO/Sqiq5DRMUbhku0I+TvzvrlgNTQ/5X4B9Gz2jZnuvkSS/KXFlRlC1z+/4KQ9k0Ub2YacqfalUV239ZgdVceXIDchDBJ3v/lfuEpCPZPNtEOL9qM8ZV3AHfNM3DKEkHtpCZCp67b/rj3QoJMBN/P1PQGlbpoIui6/GKfPcgKpJ4+hoeZU2q9MH/fb4yi5RsyUyoDqp6N4w6h4+MGpSHYBJnIX70kHqWHMeLJyMCcUvhATgkmbDot+f0JtFYChnYBEVgxpNhZUYn42H7q3FuNA4Hci1vBHTBqfzkGctvCUYyyQfoq2t15cMO2dAQPg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=34LHZ5MEK8kK8AdOBWKNqJWLudIiJdbMf6h25EY3tmU=; b=GZik+2/cmLHwfHN6d9TWCYqmTuy3XdMczH5suUkAg95Nf0Ks3WlWD6J7ahmCEqN04FR8CfJhNF3UoyoNgy0+0vnh91xdpSNFpFuvwe+x2PWaV+din5QlhzzM45foqFX582qov/6kxuroBzsavns3xIjvRr3s7RgzCvZgKBXKRIc= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4000.namprd11.prod.outlook.com (2603:10b6:208:13a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Tue, 27 Jul 2021 01:52:49 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::d447:3a7a:aad7:4d32]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::d447:3a7a:aad7:4d32%7]) with mapi id 15.20.4352.031; Tue, 27 Jul 2021 01:52:49 +0000 From: "Xia, Chenbo" To: Gaoxiang Liu , "dev@dpdk.org" , "liugaoxiang@huawei.com" CC: Maxime Coquelin Thread-Topic: [PATCH] net/virtio: fix memory leak of interrupt handle Thread-Index: AQHXgix6je50dP+RN0yJzRbYrm2UD6tWClBA Date: Tue, 27 Jul 2021 01:52:49 +0000 Message-ID: References: <20210725020315.15010-1-clgx0086@163.com> <20210726144205.177-1-clgx0086@163.com> In-Reply-To: <20210726144205.177-1-clgx0086@163.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 163.com; dkim=none (message not signed) header.d=none;163.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bbc9fbe1-5338-41f9-832b-08d950a13d06 x-ms-traffictypediagnostic: MN2PR11MB4000: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: N3ibueW3r5+mXqb01GNKD0lCl1rAP06Id+JUTlVGle3+hMxzEAOgUu8PeoASTO7oqa0xKIvo0KJeH3fGD/DemqVWeGbbVwRi5uapmuZCEIoH19680Pa5BA3tNrN4RRQNDBN4Cbbb7l6VaqYbsk3WRrFO2ifGZFWfyqG3pQyx+g0AjRGvwQxinnx/bOmn7+3+87JeBCegi0ituxBO14WjQ5Y8uqSjPhKTBS5gW+BG4GDYHwMK6eb9nF3IvvXL5nGjQ4YOs14D08x/YP7P7dtNWiLJwXuX4d5k2ahheHdJweXbQhU9GMVgi/C8Hs+dZukPnTQrJyufxauZKOIA6ia4iPFOIwmt2hSy7N9p5hCCPWHNvT0WwCWvIpP+RZvCcyCUv1MgyeBRm3KqPhChiAo1a4i/JvN7UwehlPFVgYQCdn7AytUhzchcAvrNvVcASt+3I1GxzvWgg5nNxFsDdaxH8vqDNvW0wYh/AJpXFkQ72I2jILW1dbSzizq7a9VFrT3cdeHj1cwPq0Inib8W0hQ9JCfzTEBTRc23LdYqq4aaDhlYcPzZQTj9qglzcFzg6z+GDyoQ92QFMyYON7nUgkJWpjPGAKmpZOxo/OrcACjEbH03r3qC0TC+PzXf7YZQgrAkJLmYuCOUM0GTwpKP1HvSaU0TUdnXJhBhGgphump2yc8nhIlQrlEoiDu/XIzoQffqVyotjtf9sxaL0jlAkxmXVA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66446008)(55016002)(6506007)(5660300002)(508600001)(9686003)(8676002)(53546011)(8936002)(86362001)(4326008)(316002)(7696005)(83380400001)(64756008)(66556008)(71200400001)(122000001)(76116006)(66946007)(2906002)(26005)(66476007)(52536014)(110136005)(33656002)(186003)(38100700002)(38070700004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Zy9aZjhXRXFRdklnbFVjSjdoOUxKeFN0TTFwR05CQ3JsTHdDZk84Nno5bWE5?= =?utf-8?B?QlltellYVVFkQjVCT3J1eWk1N1pJT08wZlZHeHFoaXVIaFFMbCtTRkw1Yllx?= =?utf-8?B?NERNOVB0QkI4UFloaDViYlVFQUNDVUVBeGZONGhBTFFTendpQ2wzWjlWQzA1?= =?utf-8?B?RHpmd056bmdnTFVRWXFISmlaaW5HR0xXaEEzeTJXMjFpMFZsUTRZYTBxczF6?= =?utf-8?B?R210NDJHTXl4VjV3eUM0NUtVbjNGbTNNZnhPdjhSYytiK1RoK3NPTVFmU0pE?= =?utf-8?B?MGljRXY2UHFzd1U1b1BJK2E3T1ZSc1d3N1JCTHQwK2FPeE5tZm5vd3AxMUty?= =?utf-8?B?blhMWXNXSVJYcGNscGtTUFBVcnIvSG1CTmV0eG1aa25Tc1YrZ2R3dUltT1FN?= =?utf-8?B?S3NsRUlJQVpOZzRVU2cveTBqYjFJRkErUDVXNzg1U1lKcEhmVE4rOFVMOUtC?= =?utf-8?B?YTExbVNDV1QySmV3ZTFzMFBSTHVsbklOd3ZZSlBac3hDSEw5cXp5allzUnVt?= =?utf-8?B?TlFqeHk3NDQ4clRRUGN5Uzd4K3VMR1AwQ2pIY3ZDVEhtOGVHczF4VlRJTlVu?= =?utf-8?B?VkVjdDI4QnRjM256ZkcyOGExcFZ3Y1RiMDlCSTJCM2NyWDh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xvRms2T3A0WEFQdVowQ2hFZWhWdlNZ?= =?utf-8?B?ZEZuOVdNTzhidUlORkxxZkhHNlBlWHpuVXVBOG9IcXpPM3dxTWhsSnRmRWRk?= =?utf-8?B?aFdOUFRtdGp2enN5NFdkdEVHRkdLbEN1ck9DOVJESGp2VzlsQ014SGErUWtM?= =?utf-8?B?VXlyUFBlS0xmRjE2SWVCY3NDOHBzTk00V3BvL1BxSDFmQW1SNVp4MmtIelcy?= =?utf-8?Q?l4nPZAHEcFxc7WEQL6Xg3dPA/U7pQ97OirWQbXD?= x-ms-exchange-transport-forked: True 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: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bbc9fbe1-5338-41f9-832b-08d950a13d06 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2021 01:52:49.2759 (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: RImyCT4dzjZdHYuM9a7RXs2OIZAZUWCu1LKhxiiuMhG1ROAH/6xFIVDRSp+vWBERxEl9JST4SXCLeITKKxdi/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4000 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] net/virtio: fix memory leak of interrupt handle 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 Sender: "dev" SGkgR2FveGlhbmcsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogR2F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