DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
To: dev@dpdk.org
Cc: kishore.padmanabha@broadcom.com, stable@dpdk.org,
	Ajit Khaparde <ajit.khaparde@broadcom.com>,
	Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
Subject: [PATCH 1/4] net/bnxt: modify check for short Tx BDs
Date: Wed,  3 Jun 2026 11:51:34 -0600	[thread overview]
Message-ID: <20260603175137.1990204-2-Mohammad-Shuab.Siddique@broadcom.com> (raw)
In-Reply-To: <20260603175137.1990204-1-Mohammad-Shuab.Siddique@broadcom.com>

From: Ajit Khaparde <ajit.khaparde@broadcom.com>

There is no need to use the long BDs for transmits
where only checksum offload is needed.
Modify the check for long BD and use long BDs only in cases
where TSO and other offloads are requested.

Fixes: 527b10089cc5 ("net/bnxt: optimize Tx completion handling")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Mohammad Shuab Siddique <mohammad-shuab.siddique@broadcom.com>
---
 drivers/net/bnxt/bnxt_txr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c
index 27758898b0..7ef5b15ae8 100644
--- a/drivers/net/bnxt/bnxt_txr.c
+++ b/drivers/net/bnxt/bnxt_txr.c
@@ -111,8 +111,7 @@ int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id)
 static bool
 bnxt_xmit_need_long_bd(struct rte_mbuf *tx_pkt, struct bnxt_tx_queue *txq)
 {
-	if (tx_pkt->ol_flags & (RTE_MBUF_F_TX_TCP_SEG | RTE_MBUF_F_TX_TCP_CKSUM |
-				RTE_MBUF_F_TX_UDP_CKSUM | RTE_MBUF_F_TX_IP_CKSUM |
+	if (tx_pkt->ol_flags & (RTE_MBUF_F_TX_TCP_SEG |
 				RTE_MBUF_F_TX_VLAN | RTE_MBUF_F_TX_OUTER_IP_CKSUM |
 				RTE_MBUF_F_TX_TUNNEL_GRE | RTE_MBUF_F_TX_TUNNEL_VXLAN |
 				RTE_MBUF_F_TX_TUNNEL_GENEVE | RTE_MBUF_F_TX_IEEE1588_TMST |
-- 
2.47.3


  reply	other threads:[~2026-06-03 17:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-03 17:51 [PATCH 0/4] net/bnxt: miscellaneous bug fixes Mohammad Shuab Siddique
2026-06-03 17:51 ` Mohammad Shuab Siddique [this message]
2026-06-04 17:36   ` [PATCH 1/4] net/bnxt: modify check for short Tx BDs Kishore Padmanabha
2026-06-03 17:51 ` [PATCH 2/4] net/bnxt: fix QP resource count in backing store config Mohammad Shuab Siddique
2026-06-04 17:41   ` Kishore Padmanabha
2026-06-03 17:51 ` [PATCH 3/4] net/bnxt: remove implicit integer sign-extension Mohammad Shuab Siddique
2026-06-04 17:41   ` Kishore Padmanabha
2026-06-03 17:51 ` [PATCH 4/4] net/bnxt: fix RSS hash mode configuration for VFs Mohammad Shuab Siddique
2026-06-04 17:42   ` Kishore Padmanabha
2026-06-03 18:36 ` [PATCH v2] " Mohammad Shuab Siddique
2026-06-03 20:02 ` [PATCH v3 4/4] " Mohammad Shuab Siddique
2026-06-03 21:44   ` Stephen Hemminger
2026-06-04 22:56 ` [PATCH v2 0/4] net/bnxt: miscellaneous bug fixes Mohammad Shuab Siddique
2026-06-04 22:56   ` [PATCH v2 1/4] net/bnxt: modify check for short Tx BDs Mohammad Shuab Siddique
2026-06-04 22:56   ` [PATCH v2 2/4] net/bnxt: fix QP resource count in backing store config Mohammad Shuab Siddique
2026-06-04 22:56   ` [PATCH v2 3/4] net/bnxt: remove implicit integer sign-extension Mohammad Shuab Siddique
2026-06-04 22:56   ` [PATCH v2 4/4] net/bnxt: fix RSS hash mode configuration for VFs Mohammad Shuab Siddique
2026-06-10 18:17   ` [PATCH v2 0/4] net/bnxt: miscellaneous bug fixes Kishore Padmanabha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260603175137.1990204-2-Mohammad-Shuab.Siddique@broadcom.com \
    --to=mohammad-shuab.siddique@broadcom.com \
    --cc=ajit.khaparde@broadcom.com \
    --cc=dev@dpdk.org \
    --cc=kishore.padmanabha@broadcom.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox