From: Nithin Dabilpuram <ndabilpuram@marvell.com>
To: Ruifeng Wang <ruifeng.wang@arm.com>,
Radu Nicolau <radu.nicolau@intel.com>,
Akhil Goyal <gakhil@marvell.com>
Cc: <jerinj@marvell.com>, <dev@dpdk.org>,
Nithin Dabilpuram <ndabilpuram@marvell.com>,
<rbhansali@marvell.com>
Subject: [PATCH 2/2] examples/ipsec-secgw: fix issue with IP hdr manipulation
Date: Thu, 21 Jul 2022 21:01:32 +0530 [thread overview]
Message-ID: <20220721153132.3570-2-ndabilpuram@marvell.com> (raw)
In-Reply-To: <20220721153132.3570-1-ndabilpuram@marvell.com>
Fix issue with ip header pointer computation to pick the right offset.
Fixes: 6eb3ba03995c ("examples/ipsec-secgw: support poll mode NEON LPM lookup")
Cc: rbhansali@marvell.com
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
examples/ipsec-secgw/ipsec_neon.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/ipsec-secgw/ipsec_neon.h b/examples/ipsec-secgw/ipsec_neon.h
index 3f2d0a0..f6ba287 100644
--- a/examples/ipsec-secgw/ipsec_neon.h
+++ b/examples/ipsec-secgw/ipsec_neon.h
@@ -47,7 +47,7 @@ processx4_step3(struct rte_mbuf *pkts[FWDSTEP], uint16_t dst_port[FWDSTEP],
pkt->ol_flags |= tx_offloads;
ip = (struct rte_ipv4_hdr *)
- (p[i] + RTE_ETHER_HDR_LEN + 1);
+ (((uintptr_t)p[i]) + RTE_ETHER_HDR_LEN);
ip->hdr_checksum = 0;
/* calculate IPv4 cksum in SW */
--
2.8.4
next prev parent reply other threads:[~2022-07-21 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-21 15:31 [PATCH 1/2] examples/ipsec-secgw: use Tx cksum offload conditionally Nithin Dabilpuram
2022-07-21 15:31 ` Nithin Dabilpuram [this message]
2022-08-25 8:13 ` [PATCH 2/2] examples/ipsec-secgw: fix issue with IP hdr manipulation Akhil Goyal
2022-08-25 8:11 ` [PATCH 1/2] examples/ipsec-secgw: use Tx cksum offload conditionally Akhil Goyal
2022-08-28 8:52 ` 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=20220721153132.3570-2-ndabilpuram@marvell.com \
--to=ndabilpuram@marvell.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=jerinj@marvell.com \
--cc=radu.nicolau@intel.com \
--cc=rbhansali@marvell.com \
--cc=ruifeng.wang@arm.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 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).