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 C184745610 for ; Fri, 12 Jul 2024 12:53:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BAA0442F17; Fri, 12 Jul 2024 12:53:13 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2045.outbound.protection.outlook.com [40.107.101.45]) by mails.dpdk.org (Postfix) with ESMTP id 649F840261 for ; Fri, 12 Jul 2024 12:53:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Dlgb3gP9ifZp+uiTDKLbU5KnK+TBvNftn1w3dMDXXPOiuGrz9ghvI0Dc536SVgVx38FfvfcAb/ctOhn/BU9VahYxplKTwXe98uEdEq6E8EOs1dgusUWTJE4UjrcU69en/suTVSK/E1keN+YdqD3Tu7G1zNh5repS97o3/PBOpMBdiFAwaiIkyxoTmlNP8az+kcQtZj5YHJT7E2fnwLTsoe3uyo5txF4Og9tgy20paGJv+WgLE6KSXoG6JfTZHNx75cff1umavfLuF5Xy/fFW97SGYFjJLhkdSeFVlBFMO5y2iHQXKLMHZryDkMvnnyvhJnEJMn60m/vZuVnP0VR/HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lk4Mi4jZAsURrasbuzu5kBNv/d5YEZ5d09k8wgt69zo=; b=QgzvQydCXHU2850OEY3NpUv17ppoBRFvgq6Sz/Fqt6gcFjZNec6ZZzIf3aSjO5a6vv8xbnGqndC+EC9A4wna3LtQqlgQEskhpZzUvpYgxuDeSCBYyxDaId3VPl28kwN0xQyLIlw5/JAjuJm8FeM6ybZdFprpDPWzmf1LJvxTs8Sh9aVBXVuuYZFOb4Wo2S39/d3e1V/DVBqvGjtyD119Rev6UYuSL+LGd5iNRcBrLYNrkGkgO62qKgm/2/0rvDE4ol3r1e3C3izykvBF02EoIqwkIkswhVMX6M1MiDJ/cZw3O8rFXgAawemTpPawXOxzFJb+HibRzsDyiIQ0DMZw9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lk4Mi4jZAsURrasbuzu5kBNv/d5YEZ5d09k8wgt69zo=; b=XBFzDrcMsL03bejHEEcP9O4lS3dv+ATcqulclqn7MilbKqNT1QHAofqdmJ4Vof0M9PiRMMgEdIUhwOTEUd/0sFihVLlhw6Wb0ZfReLk/dMt4WAe0yQDHPQUAShglNEv+4E6IKXt3iOxR+xJakdklwdOtSmqjhyPcxt2yQzNm/Up/X2u9rg/OJ7oZ96lIJQjaVp6VD1YVpqTDnJc4JlK5vwjWJ4SLUIdgRKSnuJVcE3wW/xlJICUdwE6Iu3KcUQCskj0bMAIuvF8nq4Mk9PyN9ThksHb8x80Je9ldJ+oEO1o16Pw8+Ewf311eBYtUZbVm2Gc0f4jJzOMEKHloZRapog== Received: from SJ0PR05CA0135.namprd05.prod.outlook.com (2603:10b6:a03:33d::20) by PH7PR12MB6860.namprd12.prod.outlook.com (2603:10b6:510:1b6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Fri, 12 Jul 2024 10:53:09 +0000 Received: from SJ5PEPF000001D6.namprd05.prod.outlook.com (2603:10b6:a03:33d:cafe::5f) by SJ0PR05CA0135.outlook.office365.com (2603:10b6:a03:33d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19 via Frontend Transport; Fri, 12 Jul 2024 10:53:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SJ5PEPF000001D6.mail.protection.outlook.com (10.167.242.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Fri, 12 Jul 2024 10:53:09 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 12 Jul 2024 03:53:01 -0700 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 12 Jul 2024 03:52:59 -0700 From: Xueming Li To: Nithin Dabilpuram CC: dpdk stable Subject: patch 'net/cnxk: fix outbound security with higher packet burst' has been queued to stable release 23.11.2 Date: Fri, 12 Jul 2024 18:45:00 +0800 Message-ID: <20240712104528.308638-75-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240712104528.308638-1-xuemingl@nvidia.com> References: <20240712104528.308638-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001D6:EE_|PH7PR12MB6860:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b1a2f6b-f8fb-4e1c-f33e-08dca260d140 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?5oo9kEQjYyY4HuPHfVyv8FyYsZ3qB709ICtcDsIQibsDY09Wh9Fi7lxvF2dZ?= =?us-ascii?Q?4bszDmDlFPetcgPlGDayzKyNnwAKNp3026OkzGBVPtesKfiQfCrnsdYbtSZi?= =?us-ascii?Q?fIFo1QxTQK2NG3KVv0q7jBnatuNqp/9Z20URsOMcVE9UKshzrTd20rBS9331?= =?us-ascii?Q?THZI6FgS06Uoph8fN2L582kOviT1GF9i0VWcVZqKz4Erp++13zCvZj2WGKJI?= =?us-ascii?Q?3Vnb1jYud/IDfodCSb4w6LEB457H2slhbSfSQ9Z0puJfl2LUo1nAEfOnLGe+?= =?us-ascii?Q?5Skhfah7PRd/SEEu5cBYEbyXaGjsWJL0ESZIpVVl0Ywt6UYcbis4qsgFvOt8?= =?us-ascii?Q?XBrdqJSmk7qpTJZDY1esw2qbjaxZM9IszUxdrCpazl40AOYeqhyGmU9wJrbg?= =?us-ascii?Q?XuAZuVGw4CsYqVgnvc5x/HMAnimk+FGT4rgut5fJWZEHmqWT3jrXa1PIbYpc?= =?us-ascii?Q?XPLRQfnYyzlDwYrc3SHxCjkvVvWhFgTl7flUxS9u0RScsEshxiWQBbdQgAMl?= =?us-ascii?Q?Z20iXfetKGmeXZfjcMV0AIJeRcCBl9riUk0aCduM84BwDlrSB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oNKv?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 10:53:09.0553 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b1a2f6b-f8fb-4e1c-f33e-08dca260d140 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001D6.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6860 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 Hi, FYI, your patch has been queued to stable release 23.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/14/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=a2577759ebd24f89de2cdedaafa20e5ac1abf4d8 Thanks. Xueming Li --- >From a2577759ebd24f89de2cdedaafa20e5ac1abf4d8 Mon Sep 17 00:00:00 2001 From: Nithin Dabilpuram Date: Tue, 28 May 2024 12:35:19 +0530 Subject: [PATCH] net/cnxk: fix outbound security with higher packet burst Cc: Xueming Li [ upstream commit 062f6f652445a283a186dc6c62c692ba7c91cc3c ] Fix issue with outbound security path while handling mixed traffic i.e both plain and inline outbound packets being present as part of burst and burst size is > 32. The loop needs to be broken when we don't have space for 4 packets in LMT lines for CPT considering both the full LMT lines and partial LMT lines used. Fixes: 55bfac717c72 ("net/cnxk: support Tx security offload on cn10k") Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_tx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h index 5dff578ba4..0a2ad08f1f 100644 --- a/drivers/net/cnxk/cn10k_tx.h +++ b/drivers/net/cnxk/cn10k_tx.h @@ -2319,7 +2319,8 @@ again: } for (i = 0; i < burst; i += NIX_DESCS_PER_LOOP) { - if (flags & NIX_TX_OFFLOAD_SECURITY_F && c_lnum + 2 > 16) { + if (flags & NIX_TX_OFFLOAD_SECURITY_F && + (((int)((16 - c_lnum) << 1) - c_loff) < 4)) { burst = i; break; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-12 18:40:17.494553920 +0800 +++ 0074-net-cnxk-fix-outbound-security-with-higher-packet-bu.patch 2024-07-12 18:40:14.196594216 +0800 @@ -1 +1 @@ -From 062f6f652445a283a186dc6c62c692ba7c91cc3c Mon Sep 17 00:00:00 2001 +From a2577759ebd24f89de2cdedaafa20e5ac1abf4d8 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 062f6f652445a283a186dc6c62c692ba7c91cc3c ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 5c4b9e559e..9ce41fe80f 100644 +index 5dff578ba4..0a2ad08f1f 100644 @@ -24 +26 @@ -@@ -2272,7 +2272,8 @@ again: +@@ -2319,7 +2319,8 @@ again: