From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F0574A0032; Thu, 21 Jul 2022 17:31:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA9824113C; Thu, 21 Jul 2022 17:31:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B736F4113C for ; Thu, 21 Jul 2022 17:31:53 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26L9qFDX001313; Thu, 21 Jul 2022 08:31:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=gnWxoZkwlfxVAQvkjrp/wxrw9tzS5GNuryk6rn06RMo=; b=L+CisYZ75CPkzCrMoC1yDBkTsoKCkUtUF0LcQlDeubW21uGezj2JKukF80YVpu30TYs3 zC+oZ2uwvI5wix9/+q7Z6xf/sTH4BA1MRXWwxYjKKv544c/bv2U6KlMg4wrbaPah2yz3 LqaS7shuqt/FI2F4H3SOKRd6d9xx746Jkai4OK/RrjqSQZ9APdV9CLxqLkd8YvqE2HhJ t882WJcZNMMod6ADYRkttLtvpVNyQqZO8hvwSK0y4uiGvZqQSGza5xUWX1DfDBgJoPDN +UZCg8ErvPV/wuyBgkukLrZmBb5/gfjTeeonMkxl+cg9cWt4MyEL1UMrLJg90yN9oE5g iA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hegg9wmcf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 21 Jul 2022 08:31:49 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Jul 2022 08:31:47 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 21 Jul 2022 08:31:47 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 6D4D43F708A; Thu, 21 Jul 2022 08:31:45 -0700 (PDT) From: Nithin Dabilpuram To: Ruifeng Wang , Radu Nicolau , Akhil Goyal CC: , , Nithin Dabilpuram , Subject: [PATCH 2/2] examples/ipsec-secgw: fix issue with IP hdr manipulation Date: Thu, 21 Jul 2022 21:01:32 +0530 Message-ID: <20220721153132.3570-2-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20220721153132.3570-1-ndabilpuram@marvell.com> References: <20220721153132.3570-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: CEl0W1FZ8jM8bYS3pkqcybOICf6GaORk X-Proofpoint-ORIG-GUID: CEl0W1FZ8jM8bYS3pkqcybOICf6GaORk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-21_18,2022-07-20_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- 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