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 32E7145D5D for ; Thu, 21 Nov 2024 00:42:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26BDE40296; Thu, 21 Nov 2024 00:42:29 +0100 (CET) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mails.dpdk.org (Postfix) with ESMTP id E600240296 for ; Thu, 21 Nov 2024 00:42:27 +0100 (CET) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3824a8a5c56so158668f8f.3 for ; Wed, 20 Nov 2024 15:42:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732146147; x=1732750947; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J0diy3eEz8VcmZTdIIh6gU/imYD94VEsSmXj+/7o/XQ=; b=BeQCWewWHu++Fgw+6Gjiq2+9/nDrs0JKYO6vUI2hTmvDX4DDBswT8EmQKWwDB92sxB df/U2+bB96ideppXdsruGPI0ZyLlaOt1/DSMCDtnLXlbKCG/IqekhJcaQbGKtHygJgWB fJbtUU7QaFGg7u6nKIUDMGx5jz8uo1x4cHnrKXDbcKdUBz11s2RUkw0Vvb2TJ8yQkTr0 g2IVdoEv9Ld6m1mS5xrBrjV0ruwlUoBpeslHg9rqpfelHwGLplpswJMfWHyklAwDXstV xIAQD7i2WtUdkhUUHS3NB1dmvRE9f63BwwVAk702Dwr6VwfBCnJ+PLXMmTlMvHxuEcEF oENw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732146147; x=1732750947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J0diy3eEz8VcmZTdIIh6gU/imYD94VEsSmXj+/7o/XQ=; b=nwoR3FNZRM7LFJ/jWlWnOw8jLYHuJwfPZ2F6cQx4B7MKv62eVk3jdSITpRPXZIktLI Go37MEn5kvBckiGPtkNB1KD4fvNjFnHYo74BglsHgaYOX/auwF6b4t0xWn/JKfSAWbDe Av7tvxnVaz4ZBuzGuHnkQVQrodRbQ25OdVbAWSSH2Jrb+zDlq/TvbpK2IbnTPf+mxV/K RGZf0iH1qLRQyYq+z4W8kW75/dAaBbMlLBHmsVWU7rAf0O/h1zmDHNZk3q7oxgL9SLjS 92HiknCIjtR73OtZbDMzEzsqHeLGgMRpmKq1UuvTel1RBY7K+2enwZA40pFP2EeVK3zK dSLQ== X-Forwarded-Encrypted: i=1; AJvYcCXT6AsVZVNEJfIsMg4slccHK1lZeKs1CIeqQp4lBjn2mWi9YsfVT9oAGEGLwmBmG7NTkkZ5Dfg=@dpdk.org X-Gm-Message-State: AOJu0YxvwRb+agVoqXeyk3FirSH9pdVdQLUHHwrKt0hcpxwvp770VVzT s3sCzTYtscuMcTlIXVXHodEF1H0bHnWRjDLJsGGrECm4va8bFdbxaNVo02O+ X-Gm-Gg: ASbGncsLxD1sjcpNMaYVwjXAeZoIsDujrfgrdR6SBtBI0dofLGxN308zcL+LrIcwbPV G0shsvUMrnnRcHhAKcCZVq/UVenzY8myYc+R7SEiYvw6qxqBwohM1z5gkkeLw/yGii7GQH6PZhG NrzLZJE3QjOVXdEpmokyLkPG9/Qj2Tta+lwOfne99bZu+Vpr7w9xWu7O7soji0NNoo7PGjDUXMr hKCxYGONl0UvliMsOR8oajHfWUfYhfUBHBlTfJ1oZy8zxWIywncL9v8 X-Google-Smtp-Source: AGHT+IFdfva80KsTcSZ11AMROq7XAl/52Kc0ENXg2V8DhJli+clDN7r4Y5UP/uUTdQILL0F/W/zYOA== X-Received: by 2002:a5d:64cb:0:b0:37d:3650:fae5 with SMTP id ffacd0b85a97d-38254b218c8mr3308501f8f.52.1732146147275; Wed, 20 Nov 2024 15:42:27 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:21cd:def0:a01d:d2aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825493ee14sm3252302f8f.99.2024.11.20.15.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 15:42:26 -0800 (PST) From: luca.boccassi@gmail.com To: Ajit Khaparde Cc: Kalesh AP , Damodharam Ammepalli , dpdk stable Subject: patch 'net/bnxt: fix TCP and UDP checksum flags' has been queued to stable release 22.11.7 Date: Wed, 20 Nov 2024 23:41:29 +0000 Message-ID: <20241120234215.233355-4-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241120234215.233355-1-luca.boccassi@gmail.com> References: <20241112220754.666489-40-luca.boccassi@gmail.com> <20241120234215.233355-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 22.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/22/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://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/3d5d7a20e0de7b76b587ccaca3fca01298600166 Thanks. Luca Boccassi --- >From 3d5d7a20e0de7b76b587ccaca3fca01298600166 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 [ 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 60bb3eea0c..1f17d77516 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -265,7 +265,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.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-20 23:41:22.894837468 +0000 +++ 0004-net-bnxt-fix-TCP-and-UDP-checksum-flags.patch 2024-11-20 23:41:22.688195466 +0000 @@ -1 +1 @@ -From 4c0451197e5a88531c30398b58b7e5601be90080 Mon Sep 17 00:00:00 2001 +From 3d5d7a20e0de7b76b587ccaca3fca01298600166 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 4c0451197e5a88531c30398b58b7e5601be90080 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index 12e4faa8fa..38f858f27f 100644 +index 60bb3eea0c..1f17d77516 100644 @@ -24 +25 @@ -@@ -319,7 +319,9 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt, +@@ -265,7 +265,9 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,