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 9B030A0579; Thu, 8 Apr 2021 10:33:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B03A40698; Thu, 8 Apr 2021 10:33:33 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id EC61540138 for ; Thu, 8 Apr 2021 10:33:31 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1388PxdP012883; Thu, 8 Apr 2021 01:33:30 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2173.outbound.protection.outlook.com [104.47.58.173]) by mx0b-0016f401.pphosted.com with ESMTP id 37swewg90v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Apr 2021 01:33:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SdK0HVGKZhZfYHYrcsa689p3hOR2+/NtSfHhbzxYUxkamofde1cJSQ/KkD2Bezf8l6Zl98sm0E87tifx1fr5R5Sc1uJFS7yVMvHFoCjanaSSkbD3FAkktb5RVLNth8QXTqWp8tpZMjDOkHFmuuGruTxLb8rkXXgpoGktQNlLDbV3QCkideyc/SQJpL9pgJtcs/rS4wwOJUqbbeOebJM/Q+D1w6aCiw/oHjrFjjITzrRO74TAv3vuecFHEw2j29JJ86bylpl29025sg3qlRdwi1uhjOLRnW9atQXWwy6yXI5rm14sHaGMyq/8vWVEcuHD64yBDf3pe2ga1oHXQapkwA== 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-SenderADCheck; bh=uqAY0UZBF9zNUpHmh9NM3mCbrCEvkJWvM55MRE9/zIc=; b=WKiQ+XUMBCVayKFtH7RNZwi5eP4OiX7Wtm7ZtWLEirnXC9xnjd0jBNMigHFaBdNIT/sGnDnq25AhzmxDrhlIk+if/pUKTs7XdZhZZuJGKKrZ+jx3fSPpuP3J2SMoLHzo3Nzzh1QqvxVXVWVAaOVychPXpm0IkkQBGarz75sh/cTaYkJXRJ5dREHoFrbnoIdMq52qnAk3GaEfoE6SdlAgo/tvz6P8NJJI/GZwwdDC/NQVEO3LxRy3oDWgDSfpt/8tnMusajUO+fIQEnX8mala2P3u9MAJ2M4vUDpwz1wBG88t+4wP+KVgUBIQ0p6w+997HqUjmLY8sFY7uxs0HrxO+A== 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=uqAY0UZBF9zNUpHmh9NM3mCbrCEvkJWvM55MRE9/zIc=; b=pBUMkBnEmhyh3gYKhb1VJ5Vjt8iOtlEUpuLhvUvCFy1r9Gc1XzpEY4rF7bFlUHIGGgtahAYgQs9qenY14FhekD1194ynqVh+lHfhlKW/PzS8yLwceEKjr8mYH8vc+xlSW0GfrbTWcpxoq+wwqg7G95xN+3gbTj7w1sncs5y7QKo= Received: from PH0PR18MB3864.namprd18.prod.outlook.com (2603:10b6:510:26::6) by PH0PR18MB3990.namprd18.prod.outlook.com (2603:10b6:510:28::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16; Thu, 8 Apr 2021 08:33:28 +0000 Received: from PH0PR18MB3864.namprd18.prod.outlook.com ([fe80::8d27:2cb2:30d6:ff99]) by PH0PR18MB3864.namprd18.prod.outlook.com ([fe80::8d27:2cb2:30d6:ff99%6]) with mapi id 15.20.4020.018; Thu, 8 Apr 2021 08:33:28 +0000 From: Tejasree Kondoj To: Tejasree Kondoj , Akhil Goyal , Radu Nicolau , Konstantin Ananyev , "olivier.matz@6wind.com" , "andrew.rybchenko@oktetlabs.ru" CC: Anoob Joseph , Ankur Dwivedi , Jerin Jacob Kollanukkaran , "dev@dpdk.org" , Ferruh Yigit , NBU-Contact-Thomas Monjalon Thread-Topic: [PATCH v3 2/4] mbuf: add packet type for UDP-ESP tunnel packets Thread-Index: AQHXLEwiLmG+xwA5/Uu+VvRpUQGxLqqqSDvA Date: Thu, 8 Apr 2021 08:33:28 +0000 Message-ID: References: <20210408081720.23314-1-ktejasree@marvell.com> <20210408081720.23314-3-ktejasree@marvell.com> In-Reply-To: <20210408081720.23314-3-ktejasree@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [49.206.51.243] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 16e9f23c-cc2e-4bc1-742b-08d8fa68fbfb x-ms-traffictypediagnostic: PH0PR18MB3990: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6faCy+Qs8GFqLc5gix4Ri1WaoTJgX9rRVdTczDXLg6vTtKHCQ10SFauq1r2TuKg0hGNlus6TQKgfrfHq+FS7ZR6c+CZWC+4ZmweWYFpodSTNguWFB8kOM1nti74gEmLH8dNpxxhlBlY2KIup3VE7eBTBNCGXcD0HFqwJZcZNyz/OWoWwp1y6Ld8y5xuQJEvhGpBmLNCPAmBzvsXQHKmJyKpljmelx43+T+bxSkf3peAl0HC1KsXP77MJhov8V1PTITbto/fQGAFoueYPYI+ZAVIQR9pT1RYbiGXPjGcAa54v+ixQCGdMroTBoB5PKxPGRzPiI118H7Tz7fUD9p8FGJcVEXT9XVrspN0p8Q7x+Xvso/NznTV1FSZcRRemONHTy3daKMH4S/8Jau6wovQfqECEd9kcW0B8jBXcz01XKEtrz6RvS0kcI0igY12Lab2nKVupQso20WBdtRbgBllT6N9WG7tlywJlK7vZqagBPmw63QKVRPrvpQrsnmhMrfpOobNStFdf+4wC0jEUA2r3TsKLFTsfhHbjO/7kQsQL2cAqElQcFDDBZONC4JyLMkJQT+EVKNIlbKfvP3FlXiEMu9UnKWWl0CqAiemYBMEjPkR7ZoyoXM64eyRB4fQDslmBVj8abK016UrNAtumrUzhQWkS50qmXMavhe5CppeHVCI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB3864.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(366004)(396003)(39860400002)(346002)(38100700001)(5660300002)(66556008)(110136005)(8676002)(66946007)(64756008)(66476007)(7696005)(52536014)(54906003)(478600001)(8936002)(66446008)(4326008)(316002)(76116006)(33656002)(2906002)(86362001)(26005)(9686003)(71200400001)(83380400001)(6506007)(55236004)(53546011)(186003)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?h1uLPeZqVkY8tYmVRHn/yQZ3kxkszl5P88H4aJOdxkmq2zO18rFEZ+TLUTAg?= =?us-ascii?Q?A1h2LGLiGt6jSy1TmbCjmmMe00irYsejdwvRxiX8498uYpiB/LpK4EDzFTs5?= =?us-ascii?Q?XbxIZGQKEiRhVP9kp1fKSKJaBegqdaNlfNKTjuw7kJN9Amw2shaKHPf6qv+N?= =?us-ascii?Q?ZFUc5kljTYF179NxE1Vmt9EU32gktW+rXmQeORYakSSVDmf/ZTVrbL3aZGhg?= =?us-ascii?Q?OqqosBJbpXXk0w/ONTW97nr01Q8Ve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ascii?Q?hh4P4jvnSNSz+LViP3kIjmsT8ZpZzFXL8E2HjWaz4DPjRZxxkAxrn4fd7syq?= =?us-ascii?Q?uaz2bbrP1fIcyjrb/NPfxLS/RZdz9oMWZjTRyLdkGz00KZXWyLn8i6M3JSJV?= =?us-ascii?Q?Xl7JMA763vy76+fxptH9wdlS+Stn7q1MDj4VHnbjCVcr6j2sdUaEP9KJ3FZX?= =?us-ascii?Q?8vHAKV3EB0SCTVO+pCgF8ETp?= 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: PH0PR18MB3864.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16e9f23c-cc2e-4bc1-742b-08d8fa68fbfb X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2021 08:33:28.2176 (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: FFbyX+woMz5J255Q8iLCfsMRSKpu36rhXI23yFwyU/L5tc8yQgoMc+FBTwQ+xH4llzecE4ptim1qKuIRA28h7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB3990 X-Proofpoint-ORIG-GUID: 4vZW2zw8NpQTRUjpCLVu_NT0a9rNvh29 X-Proofpoint-GUID: 4vZW2zw8NpQTRUjpCLVu_NT0a9rNvh29 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-08_02:2021-04-08, 2021-04-08 signatures=0 Subject: Re: [dpdk-dev] [PATCH v3 2/4] mbuf: add packet type for UDP-ESP tunnel packets 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 Sender: "dev" Hi Olivier, Andrew Could you please review the patch? Thanks Tejasree > -----Original Message----- > From: Tejasree Kondoj > Sent: Thursday, April 8, 2021 1:47 PM > To: Akhil Goyal ; Radu Nicolau > ; Konstantin Ananyev > > Cc: Tejasree Kondoj ; Anoob Joseph > ; Ankur Dwivedi ; Jerin > Jacob Kollanukkaran ; dev@dpdk.org > Subject: [PATCH v3 2/4] mbuf: add packet type for UDP-ESP tunnel packets >=20 > Adding new mbuf packet type for UDP encapsulated ESP packets. >=20 > Signed-off-by: Tejasree Kondoj > --- > doc/guides/rel_notes/release_21_05.rst | 5 +++++ > lib/librte_mbuf/rte_mbuf_ptype.h | 21 +++++++++++++++++++++ > 2 files changed, 26 insertions(+) >=20 > diff --git a/doc/guides/rel_notes/release_21_05.rst > b/doc/guides/rel_notes/release_21_05.rst > index 5565c7637c..c9e9e2ec22 100644 > --- a/doc/guides/rel_notes/release_21_05.rst > +++ b/doc/guides/rel_notes/release_21_05.rst > @@ -55,6 +55,11 @@ New Features > Also, make sure to start the actual text at the margin. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D >=20 > +* **Added new packet type for UDP-ESP packets in mbuf.** > + > + Added new packet type ``RTE_PTYPE_TUNNEL_ESP_IN_UDP`` which can be > + used to identify UDP encapsulated ESP packets. > + > * **Enhanced ethdev representor syntax.** >=20 > * Introduced representor type of VF, SF and PF. > diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h > b/lib/librte_mbuf/rte_mbuf_ptype.h > index 17a2dd3576..bf92ce0c1a 100644 > --- a/lib/librte_mbuf/rte_mbuf_ptype.h > +++ b/lib/librte_mbuf/rte_mbuf_ptype.h > @@ -491,6 +491,27 @@ extern "C" { > * | 'destination port'=3D6635> > */ > #define RTE_PTYPE_TUNNEL_MPLS_IN_UDP 0x0000d000 > +/** > + * ESP-in-UDP tunneling packet type (RFC 3948). > + * > + * Packet format: > + * <'ether type'=3D0x0800 > + * | 'version'=3D4, 'protocol'=3D17 > + * | 'destination port'=3D4500> > + * or, > + * <'ether type'=3D0x86DD > + * | 'version'=3D6, 'next header'=3D17 > + * | 'destination port'=3D4500> > + * or, > + * <'ether type'=3D0x0800 > + * | 'version'=3D4, 'protocol'=3D17 > + * | 'source port'=3D4500> > + * or, > + * <'ether type'=3D0x86DD > + * | 'version'=3D6, 'next header'=3D17 > + * | 'source port'=3D4500> > + */ > +#define RTE_PTYPE_TUNNEL_ESP_IN_UDP 0x0000e000 > /** > * Mask of tunneling packet types. > */ > -- > 2.27.0