All of lore.kernel.org
 help / color / mirror / Atom feed
From: Radu Nicolau <radu.nicolau@intel.com>
To: Radu Nicolau <radu.nicolau@intel.com>, Akhil Goyal <gakhil@marvell.com>
Cc: dev@dpdk.org, konstantin.ananyev@intel.com
Subject: [PATCH] examples/ipsec-secgw: set L4 length for TSO packets
Date: Wed, 24 Nov 2021 17:33:51 +0000	[thread overview]
Message-ID: <20211124173352.502609-1-radu.nicolau@intel.com> (raw)

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


             reply	other threads:[~2021-11-24 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 17:33 Radu Nicolau [this message]
2021-11-25 10:22 ` [EXT] [PATCH] examples/ipsec-secgw: set L4 length for TSO packets Akhil Goyal

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=20211124173352.502609-1-radu.nicolau@intel.com \
    --to=radu.nicolau@intel.com \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=konstantin.ananyev@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.