DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] examples/ipsec-secgw: set L4 length for TSO packets
@ 2021-11-24 17:33 Radu Nicolau
  2021-11-25 10:22 ` [EXT] " Akhil Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Radu Nicolau @ 2021-11-24 17:33 UTC (permalink / raw)
  To: Radu Nicolau, Akhil Goyal; +Cc: dev, konstantin.ananyev

Using RTE_MBUF_F_TX_TCP_SEG requires L4 length to be set.
Fixes: a7f32947a316 ("examples/ipsec-secgw: support TCP TSO")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 examples/ipsec-secgw/ipsec_process.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/ipsec-secgw/ipsec_process.c b/examples/ipsec-secgw/ipsec_process.c
index 9d888d4bc6..3fc4b3a84f 100644
--- a/examples/ipsec-secgw/ipsec_process.c
+++ b/examples/ipsec-secgw/ipsec_process.c
@@ -235,6 +235,7 @@ prep_process_group(void *sa, struct rte_mbuf *mb[], uint32_t cnt)
 					(RTE_MBUF_F_TX_OUTER_IP_CKSUM |
 						RTE_MBUF_F_TX_TUNNEL_ESP);
 				}
+				mb[j]->l4_len = sizeof(struct rte_tcp_hdr);
 				mb[j]->ol_flags |= (RTE_MBUF_F_TX_TCP_SEG |
 						RTE_MBUF_F_TX_TCP_CKSUM);
 				if (RTE_ETH_IS_IPV4_HDR(ptype))
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-25 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 17:33 [PATCH] examples/ipsec-secgw: set L4 length for TSO packets Radu Nicolau
2021-11-25 10:22 ` [EXT] " Akhil Goyal

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).