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 12A6145E41 for ; Sat, 7 Dec 2024 09:06:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0446340281; Sat, 7 Dec 2024 09:06:52 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2056.outbound.protection.outlook.com [40.107.237.56]) by mails.dpdk.org (Postfix) with ESMTP id 7D40B40281 for ; Sat, 7 Dec 2024 09:06:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=d1/w8mV9jKOkkpSeJEBn+cSj/yb9Tl6fQEuZO1izzIH5X04IO3k9bVQBb52hcnH37Lm8M2tBNYdkCXItFnFNYnp9Na5chZp1/7jEOKDC0vBo/qzrhH3Ji61xS7cNauUSs9N2VDqK1orgxfhx59aebSJPAIGQc8wCnQTafv/oyf4i145GhNtCzMnQVDblx6qE2KeEvgmBlBgAefQHvpTl6AUrlox0wFJ7YZXZ2nEOKZi/OHcgXtgzGFZG4jR5DlulAAHsHwgLHNantijqZjxGcM62ZebTtNJhz6ufvXJXjyMS/HKMgmUkMG91HVAb6W0KrOFN5yRvZDI3gOWrkXs62Q== 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=IfSP7u3ZRXzS1P5UIg4mFmlUR7XxhWz6//ECkB+JLDA=; b=QmmqQJACWjMi8gY5FrhtuxKubUQb24wXMMFQ+/jprjJdOA8U8sVYxbyNQno0fBBH7dYX4e5qctS5Y59hKm+d4YyKfmA+rDUq4005sHlnkO1J1uLss+17Vf5V0odA6YsvDP8oVz6nPHE7ho7+kEjlpRVAmpaM1+2IRKb6LhoNCJWsxqQXDhGHj6ule8oMqyccoElKaePb0e497M6MCUtuNKueA4SQkNMWamdxzuOnUhN9MSKjQXkKGHf2trRn+ToQu8lzuWFIU3FQPhjId0+dHaOwvbRoCxaS6gEBu+Wylc/SKvitRO0/On1W8aOTg/VJLuTrBzv9/vjH/l8H3h8MJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=broadcom.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=IfSP7u3ZRXzS1P5UIg4mFmlUR7XxhWz6//ECkB+JLDA=; b=DanpwTCGGvjx37WB0WjoKi3PFVmLFquoVeY7YPBBtz9Ht9iVhyaeX0erkiQTHrVuaNdxD5gbMdYr/C8jSb4zpg+ibDW1aSfQHlwfZV9jgbUZ2z/SdBp6TQatTNjG1rUkm8RbXS7BgCLAPS63etim5mWwZf+7AjRCTWOK3jGSeD3FlPWOmqGgjFvIKZxkCoexxsfrO+eioVodh+HtbUYMY/X3Kr17IjJL6cPcppWjKahnqMzMuJorfNXHnR2b/CkynBBrtv9ENB3hx33puzg6Kl4+V9zxH2+Ms50BaUETjJWhiTGi1OOHf7GHAf2WK67FMS/DmpW9XgtBAqdNqRJYhg== Received: from BN9PR03CA0600.namprd03.prod.outlook.com (2603:10b6:408:10d::35) by PH8PR12MB7027.namprd12.prod.outlook.com (2603:10b6:510:1be::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.17; Sat, 7 Dec 2024 08:06:46 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:408:10d:cafe::6c) by BN9PR03CA0600.outlook.office365.com (2603:10b6:408:10d::35) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.11 via Frontend Transport; Sat, 7 Dec 2024 08:06:46 +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 BL02EPF00021F68.mail.protection.outlook.com (10.167.249.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:06:46 +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; Sat, 7 Dec 2024 00:06:31 -0800 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; Sat, 7 Dec 2024 00:06:29 -0800 From: Xueming Li To: Ajit Khaparde CC: Xueming Li , Kalesh AP , Damodharam Ammepalli , dpdk stable Subject: patch 'net/bnxt: fix TCP and UDP checksum flags' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:14 +0800 Message-ID: <20241207080055.488538-57-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F68:EE_|PH8PR12MB7027:EE_ X-MS-Office365-Filtering-Correlation-Id: ed850ae7-5616-417d-7064-08dd1696183c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?mWgwOZQVshx7G1Jo+r9riLBA4jp/SCIyjPalSbOIIgbyaG5h+hmYcZ+CkW1o?= =?us-ascii?Q?NUYC+pnruHR2dEf8z52ul3bP7JWz/Y65xuIRd5rdDZIFQ3RTYKwN4P3XMCjO?= =?us-ascii?Q?XSAhJrImFESz6H13hqJfGRane/oRPFDeeVHvSeS4PJ863zYYl1yIemIPrFF8?= =?us-ascii?Q?XOc/BeL22fEEMGEDDu8HgjJ8QVoy6H9lo0QKNFywZCavMuMSX1YB9zilWDBf?= =?us-ascii?Q?mcvtDz+b7qodzyKK+X8RrQiKL5YC616CEcHnlboRoyf4aCcX/7354fMOgTwN?= =?us-ascii?Q?TH0sOARqPgu0oKSjorvW9eEk2iIeJ0NGUMQrAiKnQmWFtzrokP2JzfuNGOH/?= =?us-ascii?Q?6qay6YQn21yzwipjWwMIOCpo4foh3Uc+fG5YZCgveHk1wySLA9dABWQ1xslo?= =?us-ascii?Q?prq9Y5QmwPZTnCCuBvXaCSP2yf0s6wxlDkcfOtaRrt7rbmgnPPqgMKjQ2vTk?= =?us-ascii?Q?7U3KWt4/RvDMTL45bftoLeuMIoXyj+QSRiPakT5ZdGryzjuD4OvhOk/qr+jA?= =?us-ascii?Q?qUgzSDAvtXf4emGwU45BQ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ascii?Q?6xzYOAa5f9a8cxrY4DQObATUVpQqKRPn?= 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)(376014)(82310400026)(1800799024)(36860700013)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:06:46.1966 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed850ae7-5616-417d-7064-08dd1696183c 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: BL02EPF00021F68.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7027 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.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/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=e8a76c3869c12908664c09e47a5963c5af24b7df Thanks. Xueming Li --- >From e8a76c3869c12908664c09e47a5963c5af24b7df Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Thu, 13 Jun 2024 07:20:28 -0700 Subject: [PATCH] net/bnxt: fix TCP and UDP checksum flags Cc: Xueming Li [ upstream commit 4c0451197e5a88531c30398b58b7e5601be90080 ] Set TCP and UDP checksum flags explicitly for LSO capable packets. In some older chip variants, this will enable the hardware compute the checksum correctly for tunnel and non-tunnel packets. Fixes: 1d76c878b21d ("net/bnxt: support updating IPID") Signed-off-by: Ajit Khaparde Reviewed-by: Kalesh AP Reviewed-by: Damodharam Ammepalli --- drivers/net/bnxt/bnxt_txr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index cef14427a8..67e8a9990b 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -313,7 +313,9 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt, /* TSO */ txbd1->lflags |= TX_BD_LONG_LFLAGS_LSO | - TX_BD_LONG_LFLAGS_T_IPID; + TX_BD_LONG_LFLAGS_T_IPID | + TX_BD_LONG_LFLAGS_TCP_UDP_CHKSUM | + TX_BD_LONG_LFLAGS_T_IP_CHKSUM; hdr_size = tx_pkt->l2_len + tx_pkt->l3_len + tx_pkt->l4_len; hdr_size += (tx_pkt->ol_flags & RTE_MBUF_F_TX_TUNNEL_MASK) ? -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.950222905 +0800 +++ 0056-net-bnxt-fix-TCP-and-UDP-checksum-flags.patch 2024-12-06 23:26:43.963044828 +0800 @@ -1 +1 @@ -From 4c0451197e5a88531c30398b58b7e5601be90080 Mon Sep 17 00:00:00 2001 +From e8a76c3869c12908664c09e47a5963c5af24b7df Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 4c0451197e5a88531c30398b58b7e5601be90080 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 12e4faa8fa..38f858f27f 100644 +index cef14427a8..67e8a9990b 100644 @@ -24 +26 @@ -@@ -319,7 +319,9 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt, +@@ -313,7 +313,9 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,