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 EB6C8A0543 for ; Fri, 4 Nov 2022 07:57:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2A1742D1C; Fri, 4 Nov 2022 07:57:19 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 881A542D0E; Fri, 4 Nov 2022 07:57:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667545036; x=1699081036; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=OAh5NZMs+oSyqPfgwQV0haqmkFDeZ/RgBAITmHq9/eM=; b=hie6tYqZVjR/xL0O4qZXqGPBiTiMBBB2v3zK/xQMzYlnMa/vOPgd7LIG Gzph3KU63pxHLXy4aTjZYoy4MCltVRAenHycgkuz4h6mmTKC/4zfrmVvI 9iMwkwDrhwJUDzq1bxXkXhaBVcvQbSUbR3b+R28nBotrwio84SkSdxw9n mRLwGbJ8lXm0XVc9toRhVKgepiHIQhsat3aBig5OQSmrN4etBOqz5VQiF tudFK3AtvUIGpz0t1Qfz1xb2enSI9pUTCwKV/6T9mA/moSPDCdE5CFQeT VadbbmRyMgWrkS2WrYJ7UmgBS/KYWpuAlDHoDx5BV5eISQ2g2xtNNGRRG g==; X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="311635146" X-IronPort-AV: E=Sophos;i="5.96,136,1665471600"; d="scan'208";a="311635146" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2022 23:57:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="880193919" X-IronPort-AV: E=Sophos;i="5.96,136,1665471600"; d="scan'208";a="880193919" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 03 Nov 2022 23:57:15 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2375.31; Thu, 3 Nov 2022 23:57:14 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 3 Nov 2022 23:57:14 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) 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.2375.31; Thu, 3 Nov 2022 23:57:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IHQEo0+ia7aGY09BZw8n23Ni9/Ztd4BJo/SGapzADh6zmfVPST6nKHT4XYIhqlBLaXu5MUR3dn9+Ztg34/MXn6LSj6aqMPzzDI+I0LEKyH0UFGtm0W3C5T2j40fOItAtj1EwojIUBduUW0VTUbpS794cxokAZxCpTEM0Ki0aHLx6H6snwJqKYY6IqxElpIAga4v0W2XClWATBsNVi0JYZ0RJlw0IMACnSI6jsLUGGFv9Vhg6uGOR3VZTqg7pS9WWLUYr22GMYsPnHum9PTvTuc5nrdvqtpp8NsO4o1q9rPWr2DTVMnuOZuoYRh7zmBIzM8OVTy1sI5eaWgXLUWN9Jg== 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=ItLFeGI2+ongxQGHMHeducD51qre0agqSw2TM0J48P0=; b=ZL4gnmk40chgm+lxwLhj1iRV6WPgHCpmWffkZXmiY5MPmTfuxQSEiz8+bxZ1bC8Wy/gV5+WTHYfxtnVdJcolnP6Gta4QdMb5u/ZfUdc6ZUl90nX+vOtq4+BpuFEiHzwN4x8mGv0q0uR48lNMlwiRe8l9RIJqFWJxW5hGMhVlxRLcPpoSCjdNtvoykqh/DpEcHtjg+RHvmhrtuFtq12+eRMeq+p1BEktkEjt2jLL/N7vcEy/ol/hA8Ut46KLegItUtigQJQpXMZTavhaZq7stsFyKp8E5Nka/qOcqvpQLrkR65QlXRMyfHR5hhlliBg1f8gKqffY4njlRk5P3DCAKoQ== 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 PH7PR11MB6056.namprd11.prod.outlook.com (2603:10b6:510:1d4::20) by DM6PR11MB4738.namprd11.prod.outlook.com (2603:10b6:5:2a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Fri, 4 Nov 2022 06:57:11 +0000 Received: from PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::ba46:b69e:fad:6e4d]) by PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::ba46:b69e:fad:6e4d%7]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 06:57:11 +0000 From: "Xu, Ke1" To: "Ye, MingjinX" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Zhou, YidingX" , "Ye, MingjinX" , "Yang, Qiming" , "Zhang, Qi Z" , "Wu, Jingjing" , "Lu, Wenzhuo" , Ferruh Yigit , "Li, Xiaoyun" Subject: RE: [PATCH] net/ice: fix scalar Rx and Tx path segment Thread-Topic: [PATCH] net/ice: fix scalar Rx and Tx path segment Thread-Index: AQHY72dx4dLApUjpaEyVAQ16SSjtcq4uVfUA Date: Fri, 4 Nov 2022 06:57:11 +0000 Message-ID: References: <20221103172040.388518-1-mingjinx.ye@intel.com> In-Reply-To: <20221103172040.388518-1-mingjinx.ye@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB6056:EE_|DM6PR11MB4738:EE_ x-ms-office365-filtering-correlation-id: dfff6584-ce63-4fe0-9306-08dabe31cc41 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Cc+Ns71pRh07WeMpFRZo+uvAhWs3xHt2q70T3/Qz5JUGI5SY6oK3tSpUFoLRnPgRorQnQ097Mpm4LL1X0U7Q04KgiPmyZYW4iSWsZTPT/KVse2SVFKfvwPj8Rf3JcZFEs7JFGAAzhOt+zAH88iItx7tai1WABcTvj6dsj9lL9YISwUIWW5DtB3dXdtRhKpzTHh5yaZqX87ckb2KBKGSBsdG1ScayWGmabB60TD2FapKYod7p8sc4m4o86TE+20X4MEk4qOLLb6WErj7+/EmAgQ5AD10AEav70F3TyOIr1mNwbXhCO8M8dr0aSbjOxUZGjcPwOHtkhbC8feeKpmGXhva0chLXwCogXS0TSqmgyOnOX0VJJpLcSFzSI6zykm7nb3agTUP2Q+1Qsooaj0nTdjNihMUhfUSLB344CiabDmBtifhAmDhHIslOisl1Q9A9c/0h4IXs8XeXfUnuEruVccU/OyxyqRa2C/cCaTRDEye5VFRpFzxfLsU6hKJwI7BGWHaLVE3ww017gBUHioq0dFQOMiuEfhDTpllAXI8B/cZmPWqafKkZGLxIAHvY7HyqT3VrbbN6Lcjp3KNnNd2aZqzoSxX2Vjct9JXpeoVDA9T95XSJzCzNHHs0s2ieHB2DJsctZZW+k0gWwjW7laU5Sk+x0ixp4tR4YSS3c5G9/zMvDNeIXqpTVInYEdp4+alsGQvimR0hT4icHdx75MVLjmo8FmLYmuag8wwqM0IdcCD9u6g9iiK+HyPkBmEK+EYX9MQzgZfN9qVjgst2YBzDQw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6056.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(376002)(396003)(136003)(346002)(366004)(451199015)(2906002)(7696005)(4326008)(66946007)(76116006)(9686003)(6506007)(52536014)(41300700001)(38070700005)(66476007)(54906003)(316002)(33656002)(64756008)(8936002)(110136005)(8676002)(66556008)(5660300002)(66446008)(107886003)(122000001)(82960400001)(478600001)(86362001)(450100002)(38100700002)(53546011)(55016003)(83380400001)(71200400001)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?YzPYzfs9Qf9JQIMTy5CZ35rHnjOaigQTsYG3H1dZOCjYY9tw9ZAwNXTlVcjf?= =?us-ascii?Q?GMnHM+dbbpubZHxStE7yHlG8et/9mJEmS81a/eRpCgru53bCr99c3xSq6rSB?= =?us-ascii?Q?+Ym7vWy34QDhJN88Im3zi91kLGZAG3H1M+j6KK6BzoJkbKGT5EakzFQDvjgN?= =?us-ascii?Q?+dfO+/6LV6pEQHWBBBUZXpXOWzEHseuH6fXCBgDJSjw0W0axPBfdoo5M0JPQ?= =?us-ascii?Q?lAZ8ISNyyH+xBovXcbYu3m3y+cbQfgMOdiEwLGdaA98lZ6HYAkOWTArLZg5I?= =?us-ascii?Q?3pWAnS0s5d+p5EDcpQyeb2OvoLLm9AyeL+S2HviFhSigop/8Xccc/qjsbd4l?=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M+cjrdDQdYyIrokVjAH?= =?us-ascii?Q?/6pLqQ2o/YqjLeJVy6tvR65jIJ3af4CldrnE7nNTaESb3ivso7RFZ7+1E388?= =?us-ascii?Q?WQ6/sHKI+wzvUVWFeTgQi66iU6uNoW+kjDYwAhNT+aCEimvsR30OCyKz6WPU?= =?us-ascii?Q?rlZWWeqcPSf2vfw2B87g1hOzMMN5asUCmFPYTdVRtflTPMhyyljRR7TJEO7x?= =?us-ascii?Q?tRE+Q/CXXqDTgx1hP4P6zHapZRiE3/NpEuZTMTaO59GSOYrG+t9hh6ATWn5m?= =?us-ascii?Q?NPf2SDEMwMLLFww8inJ9+ndRdxB1HYFQbo+we9Jc/MrznN7tCc0BU/d2ERWz?= =?us-ascii?Q?IQo515Cm8hNt0Aeqazxeg+NKjcb8CWmHYDcYZSSc9ORPqSIoR/0SRzJNEtjH?= =?us-ascii?Q?lKZWLaJ6lzn71FiFSLQ/6dk7fH5UdDT24euhccs57qRz?= 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: PH7PR11MB6056.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfff6584-ce63-4fe0-9306-08dabe31cc41 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2022 06:57:11.5233 (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: fTvGTJoXWZrBegkFKssIjaJ388Xbb+v2y3JRRV0k/GxQqTuU0/W7K0FCWZTwT9N2S7lc4Y3H6rkfzCetcbs0ig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4738 X-OriginatorOrg: intel.com 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: Mingjin Ye > Sent: Friday, November 4, 2022 1:21 AM > To: dev@dpdk.org > Cc: stable@dpdk.org; Zhou, YidingX ; Ye, MingjinX > ; Yang, Qiming ; Zhang, Qi > Z ; Wu, Jingjing ; Lu, > Wenzhuo ; Ferruh Yigit ; Li= , > Xiaoyun > Subject: [PATCH] net/ice: fix scalar Rx and Tx path segment >=20 > CRC is stripped by the hardware in the scattered Rx path. If the last buf= fer > packet length is '0', the scalar Tx path would send empty buffer that cau= ses > the Tx queue to overflow. >=20 > This patch adds a judgment for the last buffer length to fix this issue, = so that > it would free the mbuf associated to the last one if the last buffer is e= mpty. >=20 > Fixes: 6eac0b7fde95 ("net/ice: support advance Rx/Tx") > Cc: stable@dpdk.org >=20 > Signed-off-by: Mingjin Ye V1 patch verified and passed. Remains some compile errors to fix for redhat= . Tested-by: Ke Xu > --- > drivers/net/ice/ice_rxtx.c | 53 ++++++++++++++++++++++++++++++++++++-- > 1 file changed, 51 insertions(+), 2 deletions(-) >=20