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 48BACA034F for ; Tue, 1 Mar 2022 09:38:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4344640DF6; Tue, 1 Mar 2022 09:38:23 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 15187407FF for ; Tue, 1 Mar 2022 09:38:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646123902; x=1677659902; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=gTYEbq7fJJXBj8ISnds+w79ZNULp49VHskwu5IYI1w4=; b=OYVqpy2yBe01kfgTdTHwnGw7kNrP0B+XSlT83bXX9W6DRoG7FEvHY77L 4fV+kyeCzc4+mW4z1s1dAAPSEVpqOiAqe9Sspo7zKNh7+/dC3d6U2un1S j8ZFvVZ5X/EigOnOvgHUn6nmWKEksX67MYlD+POnRmTvQ150WeOrK0c0n M62QU4fB4ttcLBPHLXu0ylU/aHfz2o+oN6p2oU5uAeSYyETv7z8eLX15k afmDpnL0zvYgozJXR+XWLSPKAMffLps2lFU14qykymk9WTrR0JPBFwGLT N3nK+o7riC3K28BP5GwzflNkhyOhWDkD6vrRIIYigMyGBbMP9Hr0lRYff g==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="339521756" X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="339521756" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 00:38:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="575625294" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga001.jf.intel.com with ESMTP; 01 Mar 2022 00:38:03 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 1 Mar 2022 00:38:03 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Tue, 1 Mar 2022 00:38:03 -0800 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.48) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 1 Mar 2022 00:38:02 -0800 Received: from PH7PR11MB6006.namprd11.prod.outlook.com (2603:10b6:510:1e1::13) by CY4PR11MB1591.namprd11.prod.outlook.com (2603:10b6:910:d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Tue, 1 Mar 2022 08:38:00 +0000 Received: from PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::a5a9:1f3b:4435:705b]) by PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::a5a9:1f3b:4435:705b%6]) with mapi id 15.20.5017.026; Tue, 1 Mar 2022 08:38:00 +0000 From: "Ling, WeiX" To: "Zhang, Yuying" , "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" CC: "Zhang, Yuying" , "stable@dpdk.org" Subject: RE: [PATCH v1] net/vhost: clear data of packet mbuf after sending pkts Thread-Topic: [PATCH v1] net/vhost: clear data of packet mbuf after sending pkts Thread-Index: AQHYLT4l2qUrvimkmEW5n8aq6ZqBMayqNLDw Date: Tue, 1 Mar 2022 08:38:00 +0000 Message-ID: References: <20220301072802.1349736-1-yuying.zhang@intel.com> In-Reply-To: <20220301072802.1349736-1-yuying.zhang@intel.com> Accept-Language: zh-CN, 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-office365-filtering-correlation-id: 7a6ec0c7-3a62-4b41-1f4f-08d9fb5ecb48 x-ms-traffictypediagnostic: CY4PR11MB1591:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4/34ufAVx9eLSA+E4xAqZJtWW5KcT11gk1nZ1imCn8NPTty3/CSG3u+RveGw0Eom7tSrp+/1PWpxUt2TxVz9L5PzH+RtbCY3G4z5dXqmz4aVFBLFP7IfitrcjNV3QjnTC/vPhSip9lfDJAa7XOtwu5v9mx0gmMY/qaEzz0wGWWJvlUs4ZsoxZwz6gb+uOhE9h103YkCxwAQxtwHI8HjvK4gk5D7oRQDfDyCupG3mkmsgxJuVGa55ydHit2O24VdB+Pw/7XVC21OY4UovxiZjcXz6HHQoWy7TzbHVEbBTZXxjGel0v0bkOuH8OVEz+2wqpSTtBY9bT2326txF0ROiTUm946iC6QoY30g231qiK0spQjQJgyOTdpcxs3bDSI7gXT5kBTCaM8BczVnqJ7lgBLwRBiE+mK5IanY0huP0fShyG11d/5pTKyEHCtEQn3CpH+OX4RgkuLTB3SnRioFjiqUnG79CPJ2M5mfAN6PacWRcGkX3A5CH2UbwicThPIUgn0crSOzJ5feQQzpfuxHfWPV5MA6t3DGB0hJTq6e5THJyP8AjER2HCGIKLzDXrF5bY59iu4nIYGwFB05xEKpfvt2owazMfgd1KL0ll4GudadUw+VBeiM+YQ3PqQ+Q7kmrkkd7EyQCpZIQJkdy3rL82mvuk8D9SvZIfqc48RJAEmJ2nNA5v3Ng6wr4Yg3i7R3Mz9oWpSt3qRtsJM/D6R949w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6006.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(52536014)(54906003)(5660300002)(508600001)(316002)(8936002)(4744005)(33656002)(2906002)(38100700002)(110136005)(186003)(86362001)(83380400001)(26005)(6506007)(8676002)(4326008)(9686003)(53546011)(7696005)(122000001)(55016003)(71200400001)(6636002)(76116006)(82960400001)(66556008)(66446008)(64756008)(66476007)(38070700005)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?t5XSF7cNihhkwaoZwrvidflAX3PTo5zn7GbGlMzHviOT8dQw/zMjmld6Jb9t?= =?us-ascii?Q?u3olhonqsXQM6a/LR6O48cTtAkANBfW4pGoHY0SbDUdVx5MBoDTf2tRFJ8Ci?= =?us-ascii?Q?wi037wVxDrcXxZKoSP71ee1U7TedtHEWM9x/H5EnY397iXOuNhDJFj11Usp9?= =?us-ascii?Q?I2+OqsuxUhFswYU40qHG9nWJGbAeeBoZKlmXGz/RrkH9fysgg9p6sOtNby6y?= =?us-ascii?Q?NTnrNJqEkTs74Mjr2UcO+YXd4MT+QYIZkZSe8sEJjFyzwtVGsl9opsRfXhm9?= =?us-ascii?Q?NrSzerAUAfczymuN7C1ZQhwNrqjKhY9tTSHVs1S44blDeB71wC/O+CvvgB3h?= =?us-ascii?Q?+dbL0jyAf8Fm0Fx+XGOF07xlMvnlx/mjCN0qA1Fgoxk1BnwztnlzDo2iq5Gr?= =?us-ascii?Q?OGn1A+ICGkSPcs9lMAmgzpSB7H8mxoxfK1kL91qmUKzw/2cMPOpbBPrC52ss?= =?us-ascii?Q?QdEMvqtMfjPaY0+FYGT3JEQuDPnjMxJap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8awTCRnQ/i68hSSqhJx6uL4xnII1DwjpPJ2z7XVVXzvV97o?= =?us-ascii?Q?CQhG/INf6YoDFUdOkIZVlosjY7tfKt69WkIDpePjfysmlvx01qvzKbXJi20n?= =?us-ascii?Q?34XE7pHOamp+IseIyfIEGpjWedhpXKCzKTJ5KNNAyggxAbfh0ing+EejsPEU?= =?us-ascii?Q?aNokhQUYC/7sWjiu4mIJVhFzzwPmhqo1BxATEEhY1ijD3txmI0Tf36wOsfjN?= =?us-ascii?Q?tEsArNb9SKCYTAE1ELOCHm8=3D?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q09MKRzDwzowDo1pHX0rB/l9yzFuBhd6ks94li3/UBME67zZvW3CKhxENerjDs0TOdICBcWEZBAqhraoN3BjwrZ9BGoFHj1RPSWczYCP3VUcQxnGxula2nWS/TRfuFl4Mv8RvevTdyWkvVxNVkJf6WvcHK4KWhNFFwlAxYLnZVSIGrwwMiM/KeXiifyUGW2ffPXVYC4R0hpOHm31UVr5LFky+UEzRmB9AuIrdC60UyV/hDQvoO6nd5Lix+HY5KBd7irzHJT/etLHhb/2uJ9kYePeS+sjUKbaNb86jhBMWfWeIE9qw32ycVYc1Og5i9/zPjOwRTm4oqAF3Syr5TeB0A== 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=ejiBDZdVMt2sV+ZmAY7fzz0jsCJrXgtw8nBsDXoAQKI=; b=GvBqyydcDh6e2q/8sHB02cbpiybpVk1N+QBkIXPx8mH8/Pj84/v2TSU3Zol+J4+BstXH2DtxfWozi6q9tO7Ux0IT6mBcMO7+cEo8erF5z2Ur/WV2Hw0nTZPzS2fzuZcbsO9ELCuVFebJJMDMzaMNCfUI+7jfyetsPencMaorRkfhxrwf1Hn0qzZODicf91DyuO5RCz5+HtCYeTQ3gKe2RI5wG1XRQmngyVUW+dt3MTmeY5Hk/3xEekG3fV1OL3gTvEOS4Vc5ZpuiA4Og8AFO1gLwO23EHHhejb9GbCLkvoY9Z4Mb/A4/oE7uiQNHN1AwefBVGkP0iW9dRWr5vQhxXg== 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 x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: PH7PR11MB6006.namprd11.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: 7a6ec0c7-3a62-4b41-1f4f-08d9fb5ecb48 x-ms-exchange-crosstenant-originalarrivaltime: 01 Mar 2022 08:38:00.4228 (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: szJd9JglObe0CB1rr0Py2qsqiaIjY/MpcaaVcW8t2dobGEsGoIOJHjJWtCWHGGCiTp4P9/WWhMdKDFwGQhd/Gw== x-ms-exchange-transport-crosstenantheadersstamped: CY4PR11MB1591 x-originatororg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > -----Original Message----- > From: Yuying Zhang > Sent: Tuesday, March 1, 2022 3:28 PM > To: dev@dpdk.org; maxime.coquelin@redhat.com; Xia, Chenbo > > Cc: Zhang, Yuying ; stable@dpdk.org > Subject: [PATCH v1] net/vhost: clear data of packet mbuf after sending pk= ts > > The PMD frees a packet mbuf back into its original mempool after sending = a > packet. However, old data is not cleaned up which causes error in payload= of > new packets. This patch clear data of packet mbuf before freeing mbuf. > > Fixes: ee584e9710b9 ("vhost: add driver on top of the library") > Cc: stable@dpdk.org > > Signed-off-by: Yuying Zhang > --- Tested-by: Wei Ling