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 D84EE4302C; Thu, 10 Aug 2023 18:14:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F300410FD; Thu, 10 Aug 2023 18:14:50 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id D3FD740691 for ; Thu, 10 Aug 2023 18:14:49 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 8F528206BD; Thu, 10 Aug 2023 18:14:48 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] mbuf: add ESP packet type Date: Thu, 10 Aug 2023 18:14:43 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87AE5@smartserver.smartshare.dk> In-Reply-To: <20230810155408.2045404-1-akozyrev@nvidia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] mbuf: add ESP packet type Thread-Index: AdnLovllxWXeoyOMRsWxnqGCPtmh4gAAjEVA References: <20230810155408.2045404-1-akozyrev@nvidia.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Alexander Kozyrev" , Cc: , , , 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 > From: Alexander Kozyrev [mailto:akozyrev@nvidia.com] > Sent: Thursday, 10 August 2023 17.54 >=20 > Support the IP Encapsulating Security Payload (ESP) in transport mode. >=20 > Signed-off-by: Alexander Kozyrev > --- > lib/mbuf/rte_mbuf_ptype.h | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) >=20 > diff --git a/lib/mbuf/rte_mbuf_ptype.h b/lib/mbuf/rte_mbuf_ptype.h > index 17a2dd3576..7cb7ddddda 100644 > --- a/lib/mbuf/rte_mbuf_ptype.h > +++ b/lib/mbuf/rte_mbuf_ptype.h > @@ -308,6 +308,17 @@ extern "C" { > * | 'version'=3D4, 'protocol'=3D2, 'MF'=3D0, 'frag_offset'=3D0> > */ > #define RTE_PTYPE_L4_IGMP 0x00000700 > +/** > + * ESP (IP Encapsulating Security Payload) transport packet type. > + * > + * Packet format: > + * <'ether type'=3D0x0800 > + * | 'version'=3D4, 'protocol'=3D50> Non-fragment criteria seems to be missing: * | 'version'=3D4, 'protocol'=3D50, 'MF'=3D0, 'frag_offset'=3D0> > + * or, > + * <'ether type'=3D0x86DD > + * | 'version'=3D6, 'next header'=3D50> > + */ > +#define RTE_PTYPE_L4_ESP 0x00000800 > /** > * Mask of layer 4 packet types. > * It is used for outer packet for tunneling cases. > @@ -658,6 +669,18 @@ extern "C" { > * | 'version'=3D6, 'next header'!=3D[6|17|44|132|1]> > */ > #define RTE_PTYPE_INNER_L4_NONFRAG 0x06000000 > +/** > + * ESP (IP Encapsulating Security Payload) transport packet type. > + * It is used for inner packet only. > + * > + * Packet format (inner only): > + * <'ether type'=3D0x0800 > + * | 'version'=3D4, 'protocol'=3D50> Also missing here: * | 'version'=3D4, 'protocol'=3D50, 'MF'=3D0, 'frag_offset'=3D0> > + * or, > + * <'ether type'=3D0x86DD > + * | 'version'=3D6, 'next header'=3D50> > + */ > +#define RTE_PTYPE_INNER_L4_ESP 0x08000000 > /** > * Mask of inner layer 4 packet types. > */ > -- > 2.18.2