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 4548045BCB for ; Fri, 25 Oct 2024 19:57:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3900040648; Fri, 25 Oct 2024 19:57:46 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 5565D40156 for ; Fri, 25 Oct 2024 19:57:44 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20c767a9c50so19933975ad.1 for ; Fri, 25 Oct 2024 10:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1729879063; x=1730483863; 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=0m4ZcTDTDINtdUwdS+Vne8wwYheYeU+HLeOc4hHu+wE=; b=TWkKUSAdu+KzSkdbiZ222rjz63+AZQcQBhK3xZO9i2MVJOflzypdMaK3RdPl8kFPkQ ukeKkkfuo6xL6h9oJWYAhQ4ka0PMmIa/ebDIWzrgWbuTGaDtUQnbv0+ubikNNm0ovzPa 2lQJIoM8D+f1EF6FfK8NDj8Nf4KH9/YQS8htw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729879063; x=1730483863; 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=0m4ZcTDTDINtdUwdS+Vne8wwYheYeU+HLeOc4hHu+wE=; b=sF8JCP67/Jrhe9SvH+NCC6zgGEibCEHiUza4xixpv/jcmNJFK0esHlxlVE64336l9G ZTg2kcrnpzKoV7KADoZdLiExFg2Wr+drAGl6w4mhWjoDRZGcpUWB2EUO+j3hPdDrQl4h BAoxtDEEoGVrGR5vFgZM18IHIMnAy6MPwMjfOtaFzTBBJ2gkB32OYt2dCAXCYPU6QqOq XPtywJHhvYAPiksO63T1t+lXMaawfgPxBBktnsaU4xjIONk+3LgFg6BRdoaL0GDKXyuk ABm7Iwlag0LOi49BAkJQuohK8ZUMZNEgvIVqfBfiM0yKB7g7F+4ExYBrmYlRAYDwmiKe jVcQ== X-Gm-Message-State: AOJu0YxjLJHxy0dI+Nt8cRQmJeY8eYThfH89205frG6orXGm3DdA2ZG6 fEZBhgD2lqPWGE4BBHCWcjzpnJAMGHvPDnZDmEZ/+Mlfc0dx+MMQG4hrnFziIw== X-Google-Smtp-Source: AGHT+IEdeZcuZTnjW5GyhXfziOdyCa4GYSn6ZAomZ/QD04rQoOnNX1ql5uCDZQVOL/yra13Ro3qscw== X-Received: by 2002:a17:903:32c4:b0:20c:7796:5e76 with SMTP id d9443c01a7336-20fa9e5d525mr138169405ad.18.1729879063456; Fri, 25 Oct 2024 10:57:43 -0700 (PDT) Received: from C02GC2QQMD6T.wifi.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc02ebd8sm11924335ad.210.2024.10.25.10.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 10:57:42 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: stable@dpdk.org, Kalesh AP , Damodharam Ammepalli Subject: [PATCH 01/13] net/bnxt: fix TCP and UDP checksum flags Date: Fri, 25 Oct 2024 10:57:26 -0700 Message-Id: <20241025175738.99564-2-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241025175738.99564-1-ajit.khaparde@broadcom.com> References: <20241025175738.99564-1-ajit.khaparde@broadcom.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 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") Cc: stable@dpdk.org 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 12e4faa8fa..38f858f27f 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -319,7 +319,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.39.5 (Apple Git-154)