DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] app/test-pmd: enable hw checksum offload for txonly
@ 2025-02-26 13:41 Nicolas PLANEL
  0 siblings, 0 replies; only message in thread
From: Nicolas PLANEL @ 2025-02-26 13:41 UTC (permalink / raw)
  To: aman.deep.singh; +Cc: dev

This patch fix txonly forward mode, as it was lacking of MBUF
offload flags for IPv4 and UDP when the hardware support it.

Signed-off-by: Nicolas PLANEL <nplanel@cisco.com>
---
 app/test-pmd/txonly.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
index 59d821a22d6f..bdcf6ea66008 100644
--- a/app/test-pmd/txonly.c
+++ b/app/test-pmd/txonly.c
@@ -334,6 +334,10 @@ pkt_burst_transmit(struct fwd_stream *fs)
 		ol_flags |= RTE_MBUF_F_TX_QINQ;
 	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= RTE_MBUF_F_TX_MACSEC;
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM)
+		ol_flags |= RTE_MBUF_F_TX_IP_CKSUM;
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_UDP_CKSUM)
+		ol_flags |= RTE_MBUF_F_TX_UDP_CKSUM;
 
 	/*
 	 * Initialize Ethernet header.
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-26 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-26 13:41 [PATCH] app/test-pmd: enable hw checksum offload for txonly Nicolas PLANEL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).