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 77711A034F; Tue, 1 Mar 2022 09:38:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6753241223; Tue, 1 Mar 2022 09:38:24 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id E040D407FF for ; Tue, 1 Mar 2022 09:38:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646123903; x=1677659903; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Lp18ZoglQXV1vDSrXaKRBa8H5I6LsVoqnhs7llqr1Nc=; b=JoxzkqWcGYzbSnuSf7p0X+VXBnm3ZrU5/5p9PsuZEBaFXJt7N9Ofx6km LUOChvHPLF2WDhmZrhff0pLog9LQLF1ImhBvCHYuAZBUDcjpUqxLRNzj0 M/vqTCXxAkNBQrVPOgfdHWCPNkMDU2l+cEpI+8tl8hYMYF/AYDDagMzkm B1e/cBkscbENOQ95hoMomI+fQ+tcOGO1pca4TggpqV4kwELy1IeccI7HQ iqmbaefhSmlHOuIr9qHSqf7bhNDvv577xDpxc4WbUEa54Tg9Duk+77Rmg O0WEsn9pEgqTI23YE1swZuAYrFOsxIqFKDzZV/kagcH5GgN5YL77JpBzL g==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="339521761" X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="339521761" 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:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="575625302" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga001.jf.intel.com with ESMTP; 01 Mar 2022 00:38:04 -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:04 -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:04 -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:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hPFxuAsVuqPYSFrRpA5C952h72Tu/CfMuT4+ytsSReirt+nVdKTsWQKQcuFKvcIE6BMlblzOg2XE0t3gH6qzSRPn9jVprrqU239AizfYk69rpmDJE5/1EFUu8+/uirQDTt+n0uv8wRvlXfYESwi3UAOqthcqtjoVsw0mEI4mzN0i9kYsvC1o/+n8u85qqYQgtGIrZoog8cSOOUCw4iT7T7QHersIJxkfrdNrBosxRGbeubWb0bVfSADlxo4ACiT1Dya/DtJ4OE1IKWQbKKC3BIIPu7M9FCMO46qQCuuBiWLVAtqx+SlTQYl9qLYaXO7tep2QELVCJuS3xQjNOXpstw== 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=Lp18ZoglQXV1vDSrXaKRBa8H5I6LsVoqnhs7llqr1Nc=; b=YJ2iWU5E18+kmntmodGO1Q7OP5BnSCiImHtEsC9n+E0YBgQG0YDzLnXo/WtNNd2NGX5dlrMFnNGVLTfoT2E38IynXPuqvqBkgPuB1umtslStDTDWxeLNjYPFIBjta/U/JZ7hZ+9mgRBMuZO3DdCCKnnP1+gW6MbMXS6gGh35Oa2gMwXgrYRH1tKHfeJGeonafrh1yP4Gu0SLGfdJLoceTEoXtvTqiC+HaUE7uOUrkXl7McwFmZBooEYhvstEw8gTYyCttJ1chnGqLtWffe9Lxa5uFJNQ68aSs8MNZNvMQxIGDU0cvf582BziDbhX3p7Wiokcpomcgca/lWlhJQVeDA== 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 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+FYGT3JEQuDPnjMxJapclQHzdq3+dJJnMIigzBHH4iXeph?= =?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jpPJ2z7XVVXzvV97o?= =?us-ascii?Q?CQhG/INf6YoDFUdOkIZVlosjY7tfKt69WkIDpePjfysmlvx01qvzKbXJi20n?= =?us-ascii?Q?34XE7pHOamp+IseIyfIEGpjWedhpXKCzKTJ5KNNAyggxAbfh0ing+EejsPEU?= =?us-ascii?Q?aNokhQUYC/7sWjiu4mIJVhFzzwPmhqo1BxATEEhY1ijD3txmI0Tf36wOsfjN?= =?us-ascii?Q?tEsArNb9SKCYTAE1ELOCHm8=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 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 > -----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 >=20 > 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. >=20 > Fixes: ee584e9710b9 ("vhost: add driver on top of the library") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yuying Zhang > --- Tested-by: Wei Ling