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 D290AA0C46; Tue, 31 Aug 2021 07:50:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9628140687; Tue, 31 Aug 2021 07:50:36 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id C58DE40141; Tue, 31 Aug 2021 07:50:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10092"; a="218415093" X-IronPort-AV: E=Sophos;i="5.84,365,1620716400"; d="scan'208";a="218415093" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 22:50:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,365,1620716400"; d="scan'208";a="509825187" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga001.jf.intel.com with ESMTP; 30 Aug 2021 22:50:33 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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, 30 Aug 2021 22:50:33 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.2242.10 via Frontend Transport; Mon, 30 Aug 2021 22:50:33 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) 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, 30 Aug 2021 22:50:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jJf3Miquh2OxH5ck3XKf+DpWIgCBRm0fln1t6FE1sDpMge24LbeHnrOJ/9BLxRXNqlZvESeNc2ZXRcX/mjhcl5M3k6GqVX9UtUacXwMx3rMipDvSnr/VC6+d1XOAKUPPhYDM6qClrq2fdZk/4zBsNZA9RSEc7DE0mEe0ecqK7Ys9jyUWK4pS6T4zBvTV8cfwbMsHe3wnkIKEfIufPMMvtURGBNvdNNCaFTBfHiae3eYDyjZJFllvCpwo2CHLJG1Fto6Z+eGszR9hynh57Lpog6uNyxddG2YQhwbwPpheAIlHKMIuUd1A9LVUHjjELhVtNGx0jURPzH41aDBp4WBZXA== 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=sk+4r0J2mEIVrJ9W8Xr7RIgpGGADLyAmJyjomp7gXvg=; b=E9ONWGrHKX6FN3slM8mIlfjpInxN40F4uyvXIb4iF1QecmrgRHpTi5cIoao0ofXaxmPGnEQK/LU91WFh2Xe6cuYC3n0ZVTV/L5aDF1VkHe+zj/Fpy+SUi/uFkgST0lBkkJbt0cWZ9AmFpG3wvDPZSqr2g6SmJdxFZArwo5whffF7VoJ2rOOdJyWSC3bVcU7VPxFUMkuoZaDjWd7iEEg8+t6Aq58oBiubncn1X5N42DC1t8C4cmBtOkZcjxg+JqSHRIodYw6oHQSc1QfT/MwJTpWcpm2DW8t1ViqH7FpHM272oWBTVlAlt38cMBqg0XFjhnPPuYwLCB2qNi+IXIDXvA== 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=sk+4r0J2mEIVrJ9W8Xr7RIgpGGADLyAmJyjomp7gXvg=; b=B0l9UU6IE+LIyiTj30SmkqEOANv2iyTvUR8qlKnbIdqzOd1/EJjAzJCYaBvEpegmg8MNL3/Vk96c2Cwln9wOmHdCvb18D/F1mwFybJ7vMzrwPM2TokidJmgr7/OWNiCP65g2oBw7Fy8yY0mBsuvEBFkSC4iwopb2HtH6TiwRLGk= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4030.namprd11.prod.outlook.com (2603:10b6:208:156::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Tue, 31 Aug 2021 05:50:24 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801%3]) with mapi id 15.20.4457.024; Tue, 31 Aug 2021 05:50:24 +0000 From: "Xia, Chenbo" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Jiang, Cheng1" , "Hu, Jiayu" , "stable@dpdk.org" Thread-Topic: [PATCH v2] examples/vhost: fix memory leak on forwarding packets Thread-Index: AQHXmuhkie4u9o1rNUqQ++YVfN7o8auNH9gQ Date: Tue, 31 Aug 2021 05:50:24 +0000 Message-ID: References: <20210817171320.647414-1-wenwux.ma@intel.com> <20210827140037.3822-1-wenwux.ma@intel.com> In-Reply-To: <20210827140037.3822-1-wenwux.ma@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: daa03dad-e70b-4634-c4cf-08d96c433a4c x-ms-traffictypediagnostic: MN2PR11MB4030: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OEVd5NMd5xnu3N9qjfp18+BmOst/Ql2Bg4IHzvxSuNu5jwrotNcEEOFHRpc2TWynbRFXpkGgIqyUrzYjquZRLHZ+0v1cUvTH1H0BudRQSQB3DZiFUjG78lXvhwp1kY49rs50i8CHrJeKntH7qwVhsJrRZt+5LGFjXNZ8PmBJWKYPJlL1JMeV/abo/SSQ85/JmNlkXGSqp+mH5zUBkPr+W4fneM1wNoDH6U2vVj5InMkd2VMkFd/cnJpi7p0aV+ISICuwC0JvqycQQYidyCVC7NH+TW4zn/KLbSN2n/YShqRG4xt0HH9/o4rLJNqEoFp65U5B6acqEH74B/STcrLRKaJcGy8To/WCys+NiWT8jyn4bzhNe4nngmX+T13HQCZlMBLHGxmFQIPY+ISUozd/00gxziYb2h40Y+li0+9sMG9cY6oNWi96QbIlJKuLI3JdxiuRzEm6NCDq7KJtyoB/JPuc9cZshEayFfNdLygpcJuVZ4NRcXP/x87xzUIQwq65x/HIqfiI86edykhOJ0EO5ZIl7WeTZZyf6g8pj06x2LyBXo1U28PoDnLfRWhCBAuviX0b8bmSRGj6AwF0mS9iSjYXCKqTt39gZAjw0W0H607NfEHqjS0PxeM9O9MsjSd+PEaGShzsNfp2q/p1a9BySyZpq4ib7MkcK9kH055253pe1PKUiG5JtlrcQExygRoQfIpWe8kDsA1CwYjCS9aitvvv9lfcHplNXo9ooHCZnFM= 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)(39860400002)(376002)(396003)(136003)(346002)(76116006)(33656002)(5660300002)(66946007)(4326008)(54906003)(9686003)(110136005)(53546011)(7696005)(66476007)(64756008)(83380400001)(66556008)(66446008)(316002)(52536014)(55016002)(186003)(2906002)(38070700005)(8936002)(478600001)(71200400001)(86362001)(38100700002)(6506007)(26005)(122000001)(8676002)(21314003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?T0todHlBK094eGVRTGZrQzQ4Y0k0WkxmODB6OVEveWNNV1BheEljdGEweURh?= =?utf-8?B?SnZJWlpQS0pSamk3UzZNd0tzNVBGbllaUEE4YnNJZ0NwaGYzNk1ZdVY0aVUw?= =?utf-8?B?bXZCRWNhOE4yWmxscTdSN3dBTkhyUmhFY3lZQ3krWVRVWlBvaWxPbU5kMFNC?= =?utf-8?B?YjlldXFRNFRJYmJQaUhTT3hRUVdMSGk2OUNEYUxheEdmNGx4VU5GZHQ4VWY1?= =?utf-8?B?Z3BGVFRLVEpyTHN5Zk5LVWNaRVJ0SE9wUmV6ekJ0Q1FkbjZTdEIybUxKc2o5?= =?utf-8?B?eTFiQTZDTkNBRDBHN0lIZTVkSHJQMlhtdEZwNC9HLzNHQ0dnb0VYSTlXbEFr?= =?utf-8?B?Ly9JZWNYTGcyVW1uV3FnSWdRQSszRkg4ZEhlcGkzaVF4aUxiNE4rZ3hPMFR3?= =?utf-8?B?NTBkT29NRXRrL3E4Q0VGVkxjNTFSRDNzOVpsQ3RTcktFNyt1TzRJWUZWNDZP?= =?utf-8?B?M2krOEJqNTVYdUNSME1KWkRNcVRESHVtN1BOQlRLanNGeVBOcnBOb3hYZE5G?= =?utf-8?B?WW5IdWxuRzVRWjlLSUlZN2d3M09QQ0h3RS9NVlBGY3E3NXM0Z1ZCUTI4Tzdw?= =?utf-8?B?Y1hBa295L1B1M2tVVFVhcHNQcWxtR3lKTDJoNHNmcFdGTWpsU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sd0g1RjRPL2ZaSlZreDJFVG9G?= =?utf-8?B?Z2tGSm81YXR3SFIvWm9jbW1nT1NsQWQ0VlNSYmNCblhabVYrTUExR1JUQmhN?= =?utf-8?B?SEtueG5lamphNlVSTWI2MDFNS3VsNG5HaDNXWnVPMFFlTXU5NUdEOTJpbHA1?= =?utf-8?B?YkpzVE5wQkFXTm10UUgrQWF0MU9KZ0Q0STUyaTNYY003UnpXaURwL1dEZlJJ?= =?utf-8?Q?YUhBAuQaqCr6QFsxys=3D?= 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: daa03dad-e70b-4634-c4cf-08d96c433a4c X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2021 05:50:24.4755 (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: Kp9nfqFZusqMysMLNY1hVaksBq+CfOGG48+HrNoYGfDbexxcsmvdaJ/QKVPBWHrU1J4Pcq7pAnw4CVWAZHtORw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4030 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] examples/vhost: fix memory leak on forwarding packets 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" SGkgV2Vud3UsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTWEsIFdl bnd1WCA8d2Vud3V4Lm1hQGludGVsLmNvbT4NC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