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 C2582A0542 for ; Fri, 11 Nov 2022 10:14:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA97442D11; Fri, 11 Nov 2022 10:14:43 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 51F7242D0D; Fri, 11 Nov 2022 10:14:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668158081; x=1699694081; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a7InF2DJ+SWBumTzTkgXG7y4a4fqBsoxX4wx/nzixwg=; b=CXA1Waus94SiGok3ScfrvmIc0t6kwotRORhNwvi1P12WUKwTIIYPiksa gBNwU1+jMJIm+hbl+6S9wB5AI7PQXhOoamN0ZO0rLLovcTr4kjplJcpE8 r5hyL64S45/n10C81TR9C9r0D7f0wBzNZwXppvuxturqpYYTNCFCfL6a5 7mDnm8uE6ImyXWDtim9vV3V1sDDyxpHRDOEQD+dFe/rLh27RE+60/IxQF Ze9weFzM8iW3Tn0y09db5bBvFRIxSNGiTCJZNdQUI22TzppG+mv/qs5sz AQRoofRtoPD8uInc0LlhqtsNElXXI4YOIQria8EG8ywcv/wxx/0PQTffe Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="397858556" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="397858556" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 01:14:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="743222643" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="743222643" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga002.fm.intel.com with ESMTP; 11 Nov 2022 01:14:15 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 11 Nov 2022 01:14:15 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 11 Nov 2022 01:14:15 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.45) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Fri, 11 Nov 2022 01:14:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e4Eh45gIPQReYnO4hVAsF2eHu9KLN1y0rYBEOBTHBn7L3GtfEBWkOvw2qaJQj7pg3WfSpFtgcOyJ/IGwzc7pu35pR+87Ht1b7hex9j9Y6BokYwNqsolq1cjsibOJharoSeGM+r+APGGQw3m7lzGTl/BTgJa+TX1b0mTNwr+d6p6LUHJhdUEz3WxFKmhqUtHTAP3wUNJJ7EvNrjP7/MVq909fPxOolLF3cTs3vmwZ8Jixlj4/a2gQ3dh3FLoFEgt+H2/5HnfDaXpoykrD7ru4NWvMkn30u9x1HK5KvzXUIFS3pVCSLV0aVm96qanVxiLTazXy/oBVyR5HMFQCGGQRmA== 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=a7InF2DJ+SWBumTzTkgXG7y4a4fqBsoxX4wx/nzixwg=; b=dpVqVh1w24W8R8g2UwaC4NGotW5BzbtsVqdx3noOyopKPWhpVy6iy0qmxbVXl7JDxTmkV2HCJmvBllj9XSM9SclBp52boZxbDdcyr9h/wQgcLUWcdh8XaaYZHptIVi/zZNzsGEspY/bnU1NvXAfzrIV9Uy1wX4AeyPhY/vhBTsqVEcrhOAGJOhrp26yG2SCPr1G2yfa5ax+AU52a1fAJZ00QhOWcj6foLbNv98KZMnz6YQP94HKIxjZ6E0mfmd/l5+hLPYPiqpLR7lpPG+6LwwyD55igEHi+8KO5SDor3pG3tktGBXFwjoHWqS9a/Aoysg+V2cjnw0CQIMzFx82+EQ== 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 CY8PR11MB7011.namprd11.prod.outlook.com (2603:10b6:930:55::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26; Fri, 11 Nov 2022 09:14:04 +0000 Received: from PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::ba46:b69e:fad:6e4d]) by PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::ba46:b69e:fad:6e4d%8]) with mapi id 15.20.5791.027; Fri, 11 Nov 2022 09:14:04 +0000 From: "Xu, Ke1" To: "Zhang, Qi Z" , "Ye, MingjinX" , "dev@dpdk.org" CC: "Yang, Qiming" , "stable@dpdk.org" , "Zhou, YidingX" , "Wu, Jingjing" , Ferruh Yigit , "Lu, Wenzhuo" , "Liu, KevinX" Subject: RE: [PATCH v4 2/2] net/ice: fix scalar Tx path segment Thread-Topic: [PATCH v4 2/2] net/ice: fix scalar Tx path segment Thread-Index: AQHY9addGHMzdOf5IU+dC0Da9P7kM645bS+AgAADP/A= Date: Fri, 11 Nov 2022 09:14:04 +0000 Message-ID: References: <20221111120401.802805-2-mingjinx.ye@intel.com> <20221111161241.861732-1-mingjinx.ye@intel.com> <20221111161241.861732-2-mingjinx.ye@intel.com> In-Reply-To: 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_|CY8PR11MB7011:EE_ x-ms-office365-filtering-correlation-id: 91c0ff07-a639-4084-d7ea-08dac3c51435 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 544HqaaGPjhwwKqu83R6URUvP7qURDbQ7ka1bZTAosj+ONpvOUe5sAJi4HuhKWiOOV/1tjUMhJPRhSMW7r4Kri7/Pz3CEJmg7ycH26WIncJLF2S9QrqzJnnCDevpFn4YB6JNvTO0dfphINWnWJM3UbD3eHdV8UQnC3p4xhxNO0ACWTAfcIHMuOQ2H0a7s7c2U67JTtl/jEfEwE9SDDTy+VVr+yRqEVp7++WMZ3/qRarD5GoM4AKKpwtNKcoxL4sOfw/HSRt4UTfEdYi8o7h0ERaa4Ok098csmae5nRZttF5Kkns54KHYh2aYNEfwTGm2NVQn7B3dgo4lnFGtBjH7D3onzG8W+mHQkIyYPXmaBKV+ouJL3QSHBF/zL8aJXVhnYX1unZtmIT09WaOd+GlR0linwQpusZ+m10VLW94rCHxqODjpsk03recrKpvtsKzcsniATT4uEvCtc7zIRFTXptFjQi05LVsr0nQuMbAhjCnoy6Sj4Z1BQRfsBuDv1GBDLPjLvmDFDqYRjOOyM/Y+Jui/QjQtpGrWuVj24EhGIYAuzBk0vr4s/RicxdyzR1iLMkcyYfmM+o2TxITgdIxi4Zdfz/QGfYI57sATYSZA6hdWqAgbm7VIiKmo6gvS5ikx2RN7elWsu3kaEikHXi8hG33vmrDyyhKZMDlZdRjERbjXXZKaxjzQtt7vkMJXo/yw+m20JMPMdhk84teuSVOeCa6FjhwCZAgwhMvuCkeUPgkG93apJp0SrYbUYMb3V+JY/Ku93QjDL7sJNjAhYtFj6g== 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)(136003)(346002)(39860400002)(376002)(366004)(396003)(451199015)(26005)(186003)(9686003)(83380400001)(53546011)(54906003)(6506007)(76116006)(2906002)(41300700001)(55016003)(122000001)(7696005)(86362001)(71200400001)(110136005)(8936002)(38100700002)(5660300002)(316002)(450100002)(52536014)(66446008)(8676002)(66556008)(478600001)(66946007)(64756008)(107886003)(66476007)(4326008)(33656002)(38070700005)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Z5xXn00OZXP2pJrep+fw/m0/r0YgUtbucL8rizD79AN9KjOTXhelMU31QGjz?= =?us-ascii?Q?kjgfHpON1He1kS4v6CxhV1LdgNNIHxWP4SXaR+aGb9XYxV7O42TNopodbw4z?= =?us-ascii?Q?Hh6duf91iqI0XfMUcgrA7NvOshOvAYsfKCN1vY2ReZGSPV6kSxyRu5Cn4BYc?= =?us-ascii?Q?WFAHIKEjgYHp2qfqQgym8nRL4jaW+1oCCY/XRUfdB0l4Qicb6Xg4vmTkXc/R?= =?us-ascii?Q?UunovGTG4wGIPAYjLRKXPZ9eLVhYjlJTIU4G8qPdyXkoF3OHM60j6tVvcIxh?= =?us-ascii?Q?zXrMVYh/BeJe/5GRZczWK/rFk/c+n4LLmPCfhKj7EPZ08K8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Q8Y4F232FpWqJXv9dZorHVBpwMyjfQkdXjRfDI?= =?us-ascii?Q?f6akFzQas0VkNpWA18QPKGdtWsHqfKaVhkqpjA8xSHz9caqHm+na3UBLVQ4y?= =?us-ascii?Q?WDv3Zh0uteXYXadycMGUFevXq/84kfEoql3QcAxBtGIsOhaFfHIx8WqCyCLo?= =?us-ascii?Q?ZdshBE39p1l1DYaaIQufK+7WFBf1ZPj4me7v6+UnOv2pBgkIwJ67JdD3mgXK?= =?us-ascii?Q?auXxYccD1MsAvF4IELpA31cV3n2RH6zeB4IKFQcxtaN2/VQIbOIJQUR9j1z4?= =?us-ascii?Q?LBIVhOE9s+dKG5SIYPo7kzbbAK0zsPODTQ8iGTMLeuJiT9oiMJyFvP5C7Ptj?= =?us-ascii?Q?uBPxADkUW6WIY7sWIwg=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: PH7PR11MB6056.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91c0ff07-a639-4084-d7ea-08dac3c51435 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2022 09:14:04.0768 (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: 4Ap4KPuYs9HcOJlmtNVCGp7Og9kK83XYR8jQsRdb9Gn5vKG/cDiiwV2TasOCO4a5MPMHY7N07pkYevKu5HfPHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7011 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: Zhang, Qi Z > Sent: Friday, November 11, 2022 5:02 PM > To: Ye, MingjinX ; dev@dpdk.org > Cc: Yang, Qiming ; stable@dpdk.org; Zhou, YidingX > ; Wu, Jingjing ; Ferruh > Yigit ; Lu, Wenzhuo ; Liu, > KevinX > Subject: RE: [PATCH v4 2/2] net/ice: fix scalar Tx path segment >=20 >=20 >=20 > > -----Original Message----- > > From: Ye, MingjinX > > Sent: Saturday, November 12, 2022 12:13 AM > > To: dev@dpdk.org > > Cc: Yang, Qiming ; stable@dpdk.org; Zhou, > > YidingX ; Ye, MingjinX > > ; Zhang, Qi Z ; Wu, > > Jingjing ; Ferruh Yigit > > ; Lu, Wenzhuo ; Liu, > > KevinX > > Subject: [PATCH v4 2/2] net/ice: fix scalar Tx path segment > > > > The scalar Tx path would send empty buffer that causes the Tx queue to > > overflow. > > > > This patch adds the last buffer length judgment in tx_prepare to fix > > this issue, rte_errno will be set to EINVAL and returned if the last bu= ffer is > empty. > > > > Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") > > Fixes: ccf33dccf7aa ("net/ice: check illegal packet sizes") > > Cc: stable@dpdk.org > > > > Signed-off-by: Mingjin Ye >=20 > Acked-by: Qi Zhang >=20 > Applied to dpdk-next-net-intel. >=20 > Thanks > Qi Tested and passed. Tested-by: Ke Xu