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 74B9045BF6 for ; Sun, 27 Oct 2024 18:11:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67361402E6; Sun, 27 Oct 2024 18:11:44 +0100 (CET) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id 0EE7040151 for ; Sun, 27 Oct 2024 18:11:43 +0100 (CET) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-7e6ed072cdaso2447470a12.0 for ; Sun, 27 Oct 2024 10:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1730049102; x=1730653902; 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=ODuGeX7rOb3aWlGMMylv7t8LmsDTQoOegg42IdF5/dmdawumep4ZGnz/yOA/xSyX9O vDNpI957dQ3aZPVqG2oW+j1reMxCH7i8Mck1IYu9owHv7InMFndgvxlAptvFPSZcx0Oe TX7R2/l3cw5VV0l8YxxFZCz9J/N3gwZ+SGN8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730049102; x=1730653902; 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=r1dUv+fsuDyFua8XnBbW1eWH4DYeyVPEfMcS+T99S62aolG9aNbeloPHl3r6LDPakq hg931GB8HBFiKd2krZd77Dz/MJmKEMVb60RwiHEsTV84y+7Yc4J4ygyTEdR+1WLhbNQR 2I90ihtZp8ymjzhhhNcB1HHhRPinEr3uOmCGPItpQSy3/JlVzV1ItGmT2sdtxeish7Kc gUUys8sHpA7TyksIjhHPWBFrPcUK/rK2F8fagmeF2Hd+0i1oBnytcBtmQ0yK6re9ncT6 uVB254yP/MUTGStCM7PK6Q53PScYOYycHvkJKy1ddLXP3W4hMO/L40nfK2Sea2Vhd72s aOrw== X-Gm-Message-State: AOJu0YzOfrfROsbJawpFcLPaax8d+4/bKJVoh/dxYrd7VZrJWqsOrB9M HQcQIhjzqPyrGuDilFbYtvVQvMY29F4WqqfU1CaDVeLcnchSr4ZpcqCgfkLRcg== X-Google-Smtp-Source: AGHT+IHlrCNQ1rsj/QHM65GLzN8xiSDRlWbmE8MjGTxax80Lj0FgfWlA3+p7eKnPDwIQ8S0H2chGuw== X-Received: by 2002:a05:6a21:4610:b0:1d9:29c8:2d3b with SMTP id adf61e73a8af0-1d9a85299c1mr7217211637.50.1730049102200; Sun, 27 Oct 2024 10:11:42 -0700 (PDT) Received: from localhost.localdomain ([136.52.21.78]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a21ccesm4269158b3a.167.2024.10.27.10.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 10:11:40 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: stable@dpdk.org, Kalesh AP , Damodharam Ammepalli Subject: [PATCH v2 01/13] net/bnxt: fix TCP and UDP checksum flags Date: Sun, 27 Oct 2024 10:11:16 -0700 Message-Id: <20241027171128.50221-2-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241027171128.50221-1-ajit.khaparde@broadcom.com> References: <20241027171128.50221-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)