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 0068E42DD8; Wed, 5 Jul 2023 15:50:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 85467406B5; Wed, 5 Jul 2023 15:50:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 3F4E84021F for ; Wed, 5 Jul 2023 15:50:01 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36578fsv030710; Wed, 5 Jul 2023 06:50:00 -0700 Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2048.outbound.protection.outlook.com [104.47.74.48]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3rn3v91771-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jul 2023 06:50:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xw95ikQrUhrZ9qw0+lRQXoex6JbIMjNIKGnExSp34CG3Tj+jGRkU3qtKLw2G5ELpWHWWlEHAHR8D59uncJLxwhArYjPu9TRll4CQRCGWm166PuD/iGOY2W5k8vIac7nlyNuf5d66fpeAGI+Wy+8/7brfBPCNADuNthf/8clvJWj4P8x0yTRSjWtdwusZKmyl//z8il4RGFyhv/JWGVSjYKaqTtgACKeVULFYcGQ68vSXUQaNf8G5Tf5OaPnNMXqlEfYoLdWQD/ra4z+Q2ma5i5SEc7A83nw8pce/CoZ6dEdTDkGT4993jHOJdRvBUEB5dd9yuEQ2Nxu3uP1gfSQB6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r8emoNVtdLcwXciZ2e4QCUrFMI90XJi8ZnQ15Jeql4Q=; b=WnyfCOUWq6HrnCxJimLw/111bW3UxFl913zM8UsUV9cuTpTzEXWVPxF6cRlx2qJ/hybZuE5shjSw2hKDkCTLswEZTyjJ7kNNeZP5pgxbke0P3aR1HC2Cba8NdVakGEs3IUCLI7TVXemKxNtI5lhFzUEIAAyxenYrIwZhBFl9GSZCtGdb1RxCiPliiQCdQwtX+S8NWoPMSCLFKg+J155DCG9Zpep/joayQwoF9g87gHv+wRFe8a/jPlC49pTuKen3SdKX/bKJhFe1gZMNFkqPr4+8zHvIxt9RwcBqp+AlH7tEeywPeCcCmnBNmaZ+0FZOXbms0oFvupNkNbQGbkObVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r8emoNVtdLcwXciZ2e4QCUrFMI90XJi8ZnQ15Jeql4Q=; b=KEGW/S/9ofTK96IVEWiUfj9AHAab0BOxbAg2rx5GCr2dP1sCL8Ryl+BV4VSFt519oI3+NkzXnkPqt2B0xsXL0N2Ao7yNG4iOIlMCZ1mheSpMa/yUFLZO6hv+t1ELKkByu3uukEaeVAj9CiHbFFYim25DvL5TuULTtAfgiyBKGzE= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by PH7PR18MB5353.namprd18.prod.outlook.com (2603:10b6:510:24c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 13:49:57 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::6fac:41e6:3cf:e9f3]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::6fac:41e6:3cf:e9f3%4]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 13:49:57 +0000 From: Akhil Goyal To: Xiao Liang , Konstantin Ananyev , Vladimir Medvedkin CC: "dev@dpdk.org" Subject: RE: [EXT] [PATCH] ipsec: fix NAT-T length calculation Thread-Topic: [EXT] [PATCH] ipsec: fix NAT-T length calculation Thread-Index: AQHZcdJv/s3q3a3kYky/ogt+73qe7q+rq1FA Date: Wed, 5 Jul 2023 13:49:57 +0000 Message-ID: References: <20230418084613.52740-1-shaw.leon@gmail.com> In-Reply-To: <20230418084613.52740-1-shaw.leon@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZ2FraGlsXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEy?= =?us-ascii?Q?OWUzNWJcbXNnc1xtc2ctZDIyOWIxYzUtMWIzYS0xMWVlLWEwOTYtOTRlNmY3?= =?us-ascii?Q?NjYxOTA3XGFtZS10ZXN0XGQyMjliMWM3LTFiM2EtMTFlZS1hMDk2LTk0ZTZm?= =?us-ascii?Q?NzY2MTkwN2JvZHkudHh0IiBzej0iMTYyNCIgdD0iMTMzMzMwMzg1OTUzMzI0?= =?us-ascii?Q?MDY1IiBoPSJRRkdibkExRmhtUVR1WVQxMzNhTURsb1JOUnM9IiBpZD0iIiBi?= =?us-ascii?Q?bD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFONF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IVUFj?= =?us-ascii?Q?d0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdFQWNnQjJB?= =?us-ascii?Q?R1VBYkFCc0FGOEFkd0J2QUhJQVpBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBRUFB?= =?us-ascii?Q?QUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|PH7PR18MB5353:EE_ x-ms-office365-filtering-correlation-id: 626c338f-ecd9-4abe-e61e-08db7d5eb80b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: daRMR8FKCFXuNt+tXRvtZdVUdrqdKqdsVhusFD+q6jV75ALomzKIJRguQsJZ4x9n9nTspFCQffkhKYh+JBWjYlMp4BRNmlSgTaqrXr8QLuBqi0m1CnnP8UrD17o/vb8J/45CeKUZJ7IdEIVKublwHZddMe3uHDkd0stQSzWVEA2PJ1s1Z/vFGl9INZ0cLUsBir9kB60s9O6ZLQ203nHRO/jKc3HOJhItOdZ3tC20/V8jgwNr1KS7yiMva68JAbRrhdCDOkYq8UhPleL6Ip6zTXSq6lKgfuIhZ1rr6v1AVX3AmLq7nglAgJAOQyrBlYjIQVgPfwDnh2DgLXfLLVfxLMEgxpx8ruQpz8yMGHXCNPVKY5a+gbAn7b9vTg2YZC/PLVsOzjT/i2Rn5i2uW0Aqom6tS2Rmlua3ac5UdaJMpnStGK9aiqp6336jbRRG0xPQlNzUifuUjfPrGtRVGaAecPEyl1WrXUrUSHI3O5AMV7/lEwQf/Kbn4tFwErvNrP+C/dGimWloSlro4ImrIDAV3EXJNTlYhmmIpJU6szOvun9XysgNbIkUVY2sNDGW1RWXtNI75w425ACvsr8jhO555tj1IRuDsbcq3VwOBn4uXHlTcHHDnYjrPAIgNOs1TaZt x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(39860400002)(396003)(376002)(346002)(136003)(451199021)(478600001)(7696005)(71200400001)(76116006)(110136005)(66946007)(55236004)(6506007)(26005)(186003)(9686003)(66556008)(2906002)(41300700001)(316002)(66476007)(66446008)(64756008)(4326008)(5660300002)(52536014)(8936002)(8676002)(38100700002)(122000001)(86362001)(33656002)(38070700005)(83380400001)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4mBlYmzs8yMYxkjzZGEiBn9QNtpNUusQYEyiJWdHZfbC1Yjkvy4tQx3dZwz3?= =?us-ascii?Q?9GDls4JKajSOoIQYi1Hl2ix8cgOhyNTaZY83CLbAMcH7YR1qOo2YBVMJWc1H?= =?us-ascii?Q?YewK+oNYObWM+Y6AzgOJkn4Jt+VJqZ9zsIJ671NTnrideb6rnOkib2gMba48?= =?us-ascii?Q?Y1C9jYDAqfYuU2940fhnZ8Nl5+8B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+avp8c9b0RWFTsdkSQGApgUFjIPNX8vy1pHcTkSb91fOaMhB?= =?us-ascii?Q?RIz7wCAeO2vNnxh0fiLOZlap86gUyDL8Pf5J3jMLR+HB45uWPoTUS26sf3Yh?= =?us-ascii?Q?JIl76FfSQUiiKiH3Es3haByJtFbEjM3noSa4GHumuz+2g8mfb7A/jiW7kGi0?= =?us-ascii?Q?EuHZuLLuH1s/uYhY3esaRqsIh6i0RTIWy8W3phSv+/dfg84umkStC70Iy0wR?= =?us-ascii?Q?RP6mOxSlg71NPtJSnxMI9a+Dlvq8jnUFZZHp2Y1pYlxXNWBDDm/4eID5iBqN?= =?us-ascii?Q?gPnZiOL4ArynHvLG84PMEEO2Op4fsuYBaMO77LA2QLYWeNUT1VCBhboW5Pt6?= =?us-ascii?Q?L4719vBuYUYMamhoA1W/+zcgFT+OcBVPCGvCsfHg3JQ8D4R0IusFzNbRaTzS?= =?us-ascii?Q?Th6DHFCiPCCdtCAIrjmvTIL4TRz58/ZuQWMoE245l4hu+HuBQ5uVxgzG0der?= =?us-ascii?Q?ivvwZA8+XPVR51jS6TEo1wKWPF7NWaZmRSsX1qMs?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 626c338f-ecd9-4abe-e61e-08db7d5eb80b X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2023 13:49:57.1119 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZR68+ezvvnUnbh1FQ8NvFe99OiK1IMVqrP4LKLsIASHlaboMLEVeXc6u/IMFzb//4Fbd6PS+07CwJL3vxNmvhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5353 X-Proofpoint-GUID: e43TGRQwhx5TIW-HHTWMENkhjW_AjToy X-Proofpoint-ORIG-GUID: e43TGRQwhx5TIW-HHTWMENkhjW_AjToy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-05_05,2023-07-05_01,2023-05-22_02 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 Hi Konstantin, Can you review this patch? > UDP header length is included in sa->hdr_len. Take care of that in > L3 header and pakcet length calculation. >=20 > Fixes: 01eef5907fc3 ("ipsec: support NAT-T") >=20 > Signed-off-by: Xiao Liang > --- > lib/ipsec/esp_outb.c | 2 +- > lib/ipsec/sa.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/lib/ipsec/esp_outb.c b/lib/ipsec/esp_outb.c > index 9cbd9202f6..ec87b1dce2 100644 > --- a/lib/ipsec/esp_outb.c > +++ b/lib/ipsec/esp_outb.c > @@ -198,7 +198,7 @@ outb_tun_pkt_prepare(struct rte_ipsec_sa *sa, > rte_be64_t sqc, > struct rte_udp_hdr *udph =3D (struct rte_udp_hdr *) > (ph + sa->hdr_len - sizeof(struct rte_udp_hdr)); > udph->dgram_len =3D rte_cpu_to_be_16(mb->pkt_len - sqh_len - > - sa->hdr_l3_off - sa->hdr_len); > + sa->hdr_len + sizeof(struct rte_udp_hdr)); > } >=20 > /* update original and new ip header fields */ > diff --git a/lib/ipsec/sa.c b/lib/ipsec/sa.c > index 59a547637d..2297bd6d72 100644 > --- a/lib/ipsec/sa.c > +++ b/lib/ipsec/sa.c > @@ -371,7 +371,7 @@ esp_outb_tun_init(struct rte_ipsec_sa *sa, const stru= ct > rte_ipsec_sa_prm *prm) >=20 > /* update l2_len and l3_len fields for outbound mbuf */ > sa->tx_offload.val =3D rte_mbuf_tx_offload(sa->hdr_l3_off, > - sa->hdr_len - sa->hdr_l3_off, 0, 0, 0, 0, 0); > + prm->tun.hdr_len - sa->hdr_l3_off, 0, 0, 0, 0, 0); >=20 > esp_outb_init(sa, sa->hdr_len, prm->ipsec_xform.esn.value); > } > -- > 2.40.0