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 462A3A0542 for ; Fri, 11 Nov 2022 10:02:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F73F427EB; Fri, 11 Nov 2022 10:02:07 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id A1F82410F2; Fri, 11 Nov 2022 10:02:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668157325; x=1699693325; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=W1QwgN7rIY/5I5+r9/5ve0BGahQC04pm5vYr3qxd6go=; b=hJg/piQmKbiRmnPHSlAE4onq+8mO8Cz/BYfXDgRzfGJjQce/n1YJy8l/ v9LHLgbb+PMMOsr6IXhzUz7CK4sFDGGVl75uE398fACo18VvRic8m6LwM Z5AOMnRzkghYCNB9KcKcjiwkVY6EEu/ptUML6Do+fcI+GLYmK1lBfe7Ks OhNQzMzBjjckTwvd2lBitbtPkKSGZSDAAMICoAJK2+g1Qf833Q743gmrn S4SbYm67LR3i/Ygrs+5miJ66GjGylx/gSWBeWQR+ARH2uUSkMNWuApeOU xVQNInZ4/VJuZtBs2FffA4cHgMojzkNfnlf/z8PduEG9XzQL6xuZUNZ2K w==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="310273993" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="310273993" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 01:02:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="637520921" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="637520921" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga002.jf.intel.com with ESMTP; 11 Nov 2022 01:02:03 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) 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:02:02 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) 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:02:02 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.46) by edgegateway.intel.com (192.55.55.68) 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:02:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ccFDzyTvVKf+r69GyNoQkPrImr5kIc5fNAzYq7YUlp1V0L6G/zbtIVjawxQPqNEWTWoxUse2ZLCkwIDPI1UJl5ErpwkRdsytv0flFP2QpDrVL2v/LANhO/dsErtyKgHr34iADG7UrFKUUArEJQQLgtwBr8LmSqsrGuvGGfVNACI5LJh9nPeHvdRtpoghjsQJo204Eavs/wgZwo0YllAmvoa7YAnMngRa4AGbZsb/iO8w9wR44ZPQdw6DMF5sUmZanposwtFjk+HNahxD/Ggip0pX0gB7x1jSYm9e3WqoxYq4QrtxRqk2cS/x0Rfph1Ef32i6rLacgV75B5nZGS86nQ== 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=W1QwgN7rIY/5I5+r9/5ve0BGahQC04pm5vYr3qxd6go=; b=aPn7fVVPT4pj8xP9VdemL+NiFL1hlF/vCqQ5TTlA3Qo54uX9kkO+ibLqnOU+xcndLc18NnmjM7VX2R2APZe64JGlW7WIGaM7ZGV9CO+76j18M3LqWVUR1Ban3fvcsHnlYWmFBRKNGm9hw5J8OQG4JfFe3nDuPO9kROumptizeLpo5InYyP6msbvdp3R1RisMOcCUao3HIxCOXTLuSBc8JnUPu3cgOoarMj0tRXVG6VrHwTTvfJddV4WRLeD4W6VhzdBuZJAuQVtCI9QowioZelB54K31oZC/MlECMbjO96L3scTouX4hF5e7ga5RI/fOsqvnS6bMpvndutXedfkvvg== 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 DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by CO1PR11MB4996.namprd11.prod.outlook.com (2603:10b6:303:90::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13; Fri, 11 Nov 2022 09:01:55 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e2ac:cde3:4d74:3fa7]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e2ac:cde3:4d74:3fa7%3]) with mapi id 15.20.5791.025; Fri, 11 Nov 2022 09:01:55 +0000 From: "Zhang, Qi Z" 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 Thread-Topic: [PATCH v4 2/2] net/ice: fix scalar Tx path segment Thread-Index: AQHY9ac4QhIaFWTlnkuV0Itb9TFEXq45bQ9g Date: Fri, 11 Nov 2022 09:01:55 +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: <20221111161241.861732-2-mingjinx.ye@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows 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: DM4PR11MB5994:EE_|CO1PR11MB4996:EE_ x-ms-office365-filtering-correlation-id: b7302851-8491-4e63-7398-08dac3c361b2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FQGJeKom5+bdOB1Ld+46wUnbR/BztX5hval2a3evegwYUBo1IMEveQdmweHAMUHZB+ars324iUYrCQLtQaqr+qsw1i5R+oAe6y2pdiRDcR+Jn5njutDEbdgEDDeAePtn4qUaEcC/UOR9dR3Nw1V3jj05eDNPZcb/CskOz0JOGrRlY3zxXvTwFVpa+uE9bMrHcyHoz+YDQIVTVBsMkIdG7qxOLvD7DJVz9mgjPcfXyp2m6P+Rz2Q9rtOXsN2w0PrKkBnW0jCzv4f4DGvDSjj9UFRm9z4Id3BPSQIqoJdXIqPi8mybyXRcfoCU9sOfHSKHdq2t5IuhZshcim7wz+dDYnIykCnlphHQFyyrTicC4kHbjcIY9j5GTk2yvI9gujJKo7NURiiiLjzWLPNDRo1m6e5y/UzXZthPBNmFTfxLvFQ6lkB+vPRZdAuS7PyaCN8lz4iRwd8rprpV6cQJf30X2iOEWGQOeqWUAtZ+DXPX3YTh4k4VERA9POR1LDJZWKBjEEbZKYDRM/rlFBRzmaFl4twc2biUMVSd+GmXRVJTxLElAhqFYQ59EV6N08rbz3xfkIUrwy2VUYdqDy/kGYi0S3HorbX+njBW/C36Qrom1qeb57A3nEPhmmCnihCAuYHMF3hojmt789agQBn6LBkpZlGe/Cmf5csbN8dEsOkG2v8+szFmJdUmuB/YXT/Wv05eHMglbgnHsYDEQJ4fUHkXWvvdGwNsMrdgvNJIEAZNURVwaAoAKqTUwFEMTNGV+dOtLhiEgR/R2Ftax4BZNc3W4A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(366004)(136003)(39860400002)(346002)(376002)(451199015)(54906003)(55016003)(110136005)(316002)(4744005)(71200400001)(52536014)(41300700001)(2906002)(9686003)(26005)(86362001)(38070700005)(186003)(8936002)(76116006)(5660300002)(450100002)(478600001)(107886003)(66476007)(82960400001)(38100700002)(122000001)(33656002)(66556008)(66946007)(53546011)(4326008)(7696005)(6506007)(64756008)(66446008)(83380400001)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gO0S0/CW/d9DO83oeCFFVchgxYjpe14iIdovS9vkfS+C3ka0EQ1PGumiOtM6?= =?us-ascii?Q?aB8MKU2lGc0rVRy8vxMqqLIR+JMegwckpPeXeybW9To1DPSZHTY0159LLRyS?= =?us-ascii?Q?iFudGuNXEXdGPPrGlYkRLhjtisrNaSk036yXBEh4ggpXLy3rdGMfuEbkfWL3?= =?us-ascii?Q?6dsUbldvlZB6diJ1IAAEo2Qp9536Xh8Bg683eHuXB/9xcxue9uCwTVsgOPMR?= =?us-ascii?Q?89NpzsTTeNdRa0thani97vgqm3c9/TJUPUNpSk5LKsez/09xKFaNWkzrSW77?= =?us-ascii?Q?Lw73g2mVmlQJIJvPS61IzA+fFlU66qtno+1H1aglOurO5T+FtMK9yxJ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tWBvCQgbznfbhXuSxLWBnr?= =?us-ascii?Q?U8Z/WrKXUn5tRfyPnZAFBs2FGY7O1S4ZwOvTYXWMjuCW49DPC8HkvbZ/c+4l?= =?us-ascii?Q?I8zTHFdE1/I2HUJSIGtaoac5iSLIuhfhAtNj+8CaDhIYZiJecTlqzxKI4DpS?= =?us-ascii?Q?KymWUjAdfDoNpa8qPw94w1BZTjnQpI0AAeOHuEe92Rmd825YFxELj6WOtyNn?= =?us-ascii?Q?YDuinrzxrZLqm4vs6tJZYlWIezXQqhwG7Nz708LSKwMP437QbBcJ2mJna7/s?= =?us-ascii?Q?3vFVJOc546ECuJw/NSB5dvqaZ+CJcKW5PFa4NL5LuEHpYBs2eKN8sAMEuTWc?= =?us-ascii?Q?FT6TfrHwlWKbzcGYel0Kd7cEZBnmxV7TvNv0SWP6?= 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: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7302851-8491-4e63-7398-08dac3c361b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2022 09:01:55.1157 (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: J4olwwm4mNe9CRZvS61PV7QcaWqzoc+bevtpkZ3/Gayl5QxQmcJqQF3nq+cLtM9hxtHBQgavDYXihMZK4yUbww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4996 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: 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 Yi= git > ; Lu, Wenzhuo ; Liu, > KevinX > Subject: [PATCH v4 2/2] net/ice: fix scalar Tx path segment >=20 > The scalar Tx path would send empty buffer that causes the Tx queue to > overflow. >=20 > 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 buffer is empty. >=20 > Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") > Fixes: ccf33dccf7aa ("net/ice: check illegal packet sizes") > Cc: stable@dpdk.org >=20 > Signed-off-by: Mingjin Ye Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi