[v2,2/4] mbuf: add packet type for UDP-ESP tunnel packets
Checks
Commit Message
Adding new mbuf packet type for UDP encapsulated
ESP packets.
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
doc/guides/rel_notes/release_21_05.rst | 5 +++++
lib/librte_mbuf/rte_mbuf_ptype.h | 21 +++++++++++++++++++++
2 files changed, 26 insertions(+)
Comments
> Adding new mbuf packet type for UDP encapsulated
> ESP packets.
>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
> ---
> doc/guides/rel_notes/release_21_05.rst | 5 +++++
> lib/librte_mbuf/rte_mbuf_ptype.h | 21 +++++++++++++++++++++
> 2 files changed, 26 insertions(+)
>
Acked-by: Akhil Goyal <gakhil@marvell.com>
++Olivier
Thomas,
Can this patch be part of crypto tree if acked by Olivier?
Regards,
Akhil
05/04/2021 20:11, Akhil Goyal:
> > Adding new mbuf packet type for UDP encapsulated
> > ESP packets.
> >
> > Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
> > ---
> > doc/guides/rel_notes/release_21_05.rst | 5 +++++
> > lib/librte_mbuf/rte_mbuf_ptype.h | 21 +++++++++++++++++++++
> > 2 files changed, 26 insertions(+)
> >
> Acked-by: Akhil Goyal <gakhil@marvell.com>
>
> ++Olivier
>
> Thomas,
> Can this patch be part of crypto tree if acked by Olivier?
Yes, adding a packet type is OK if reviewed by Olivier or Andrew.
Olivier, Andrew, please could you review?
@@ -55,6 +55,11 @@ New Features
Also, make sure to start the actual text at the margin.
=======================================================
+* **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.**
* Introduced representor type of VF, SF and PF.
@@ -491,6 +491,27 @@ extern "C" {
* | 'destination port'=6635>
*/
#define RTE_PTYPE_TUNNEL_MPLS_IN_UDP 0x0000d000
+/**
+ * ESP-in-UDP tunneling packet type (RFC 3948).
+ *
+ * Packet format:
+ * <'ether type'=0x0800
+ * | 'version'=4, 'protocol'=17
+ * | 'destination port'=4500>
+ * or,
+ * <'ether type'=0x86DD
+ * | 'version'=6, 'next header'=17
+ * | 'destination port'=4500>
+ * or,
+ * <'ether type'=0x0800
+ * | 'version'=4, 'protocol'=17
+ * | 'source port'=4500>
+ * or,
+ * <'ether type'=0x86DD
+ * | 'version'=6, 'next header'=17
+ * | 'source port'=4500>
+ */
+#define RTE_PTYPE_TUNNEL_ESP_IN_UDP 0x0000e000
/**
* Mask of tunneling packet types.
*/