DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH 1/2] mbuf: add FCoE packet type
@ 2018-08-26 12:54 Jerin Jacob
  2018-08-26 12:54 ` [dpdk-dev] [PATCH 2/2] mbuf: add MPLS " Jerin Jacob
  2018-10-23  7:44 ` [dpdk-dev] [PATCH 1/2] mbuf: add FCoE " Olivier Matz
  0 siblings, 2 replies; 6+ messages in thread
From: Jerin Jacob @ 2018-08-26 12:54 UTC (permalink / raw)
  To: dev; +Cc: olivier.matz, Jerin Jacob

Add support of FCoE packet type.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
 lib/librte_mbuf/rte_mbuf_ptype.c | 1 +
 lib/librte_mbuf/rte_mbuf_ptype.h | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_ptype.c
index d7835e283..71577f9b9 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.c
+++ b/lib/librte_mbuf/rte_mbuf_ptype.c
@@ -19,6 +19,7 @@ const char *rte_get_ptype_l2_name(uint32_t ptype)
 	case RTE_PTYPE_L2_ETHER_VLAN: return "L2_ETHER_VLAN";
 	case RTE_PTYPE_L2_ETHER_QINQ: return "L2_ETHER_QINQ";
 	case RTE_PTYPE_L2_ETHER_PPPOE: return "L2_ETHER_PPPOE";
+	case RTE_PTYPE_L2_ETHER_FCOE: return "L2_ETHER_FCOE";
 	default: return "L2_UNKNOWN";
 	}
 }
diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h
index 01acc66e2..5693baeb8 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.h
+++ b/lib/librte_mbuf/rte_mbuf_ptype.h
@@ -130,6 +130,13 @@ extern "C" {
  * <'ether type'=[0x8863|0x8864]>
  */
 #define RTE_PTYPE_L2_ETHER_PPPOE            0x00000008
+/**
+ * FCoE packet type.
+ *
+ * Packet format:
+ * <'ether type'=[0x8906]>
+ */
+#define RTE_PTYPE_L2_ETHER_FCOE             0x00000009
 /**
  * Mask of layer 2 packet types.
  * It is used for outer packet for tunneling cases.
-- 
2.18.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [dpdk-dev]  [PATCH 2/2] mbuf: add MPLS packet type
  2018-08-26 12:54 [dpdk-dev] [PATCH 1/2] mbuf: add FCoE packet type Jerin Jacob
@ 2018-08-26 12:54 ` Jerin Jacob
  2018-10-23  7:45   ` Olivier Matz
  2018-10-23  7:44 ` [dpdk-dev] [PATCH 1/2] mbuf: add FCoE " Olivier Matz
  1 sibling, 1 reply; 6+ messages in thread
From: Jerin Jacob @ 2018-08-26 12:54 UTC (permalink / raw)
  To: dev; +Cc: olivier.matz, Jerin Jacob

Add support of MPLS packet type.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
 lib/librte_mbuf/rte_mbuf_ptype.c | 1 +
 lib/librte_mbuf/rte_mbuf_ptype.h | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_ptype.c
index 71577f9b9..5954c2bc5 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.c
+++ b/lib/librte_mbuf/rte_mbuf_ptype.c
@@ -20,6 +20,7 @@ const char *rte_get_ptype_l2_name(uint32_t ptype)
 	case RTE_PTYPE_L2_ETHER_QINQ: return "L2_ETHER_QINQ";
 	case RTE_PTYPE_L2_ETHER_PPPOE: return "L2_ETHER_PPPOE";
 	case RTE_PTYPE_L2_ETHER_FCOE: return "L2_ETHER_FCOE";
+	case RTE_PTYPE_L2_ETHER_MPLS: return "L2_ETHER_MPLS";
 	default: return "L2_UNKNOWN";
 	}
 }
diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h
index 5693baeb8..8fe000a82 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.h
+++ b/lib/librte_mbuf/rte_mbuf_ptype.h
@@ -137,6 +137,13 @@ extern "C" {
  * <'ether type'=[0x8906]>
  */
 #define RTE_PTYPE_L2_ETHER_FCOE             0x00000009
+/**
+ * MPLS packet type.
+ *
+ * Packet format:
+ * <'ether type'=[0x8847|0x8848]>
+ */
+#define RTE_PTYPE_L2_ETHER_MPLS             0x0000000a
 /**
  * Mask of layer 2 packet types.
  * It is used for outer packet for tunneling cases.
-- 
2.18.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] mbuf: add FCoE packet type
  2018-08-26 12:54 [dpdk-dev] [PATCH 1/2] mbuf: add FCoE packet type Jerin Jacob
  2018-08-26 12:54 ` [dpdk-dev] [PATCH 2/2] mbuf: add MPLS " Jerin Jacob
@ 2018-10-23  7:44 ` Olivier Matz
  2018-10-25 13:48   ` Thomas Monjalon
  1 sibling, 1 reply; 6+ messages in thread
From: Olivier Matz @ 2018-10-23  7:44 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev

On Sun, Aug 26, 2018 at 06:24:54PM +0530, Jerin Jacob wrote:
> Add support of FCoE packet type.
> 
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>

Acked-by: Olivier Matz <olivier.matz@6wind.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] mbuf: add MPLS packet type
  2018-08-26 12:54 ` [dpdk-dev] [PATCH 2/2] mbuf: add MPLS " Jerin Jacob
@ 2018-10-23  7:45   ` Olivier Matz
  2018-10-23  7:48     ` Olivier Matz
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier Matz @ 2018-10-23  7:45 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev

On Sun, Aug 26, 2018 at 06:24:55PM +0530, Jerin Jacob wrote:
> Add support of MPLS packet type.
> 
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>

Acked-by: Olivier Matz <olivier.matz@6wind.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] mbuf: add MPLS packet type
  2018-10-23  7:45   ` Olivier Matz
@ 2018-10-23  7:48     ` Olivier Matz
  0 siblings, 0 replies; 6+ messages in thread
From: Olivier Matz @ 2018-10-23  7:48 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev

On Tue, Oct 23, 2018 at 09:45:33AM +0200, Olivier Matz wrote:
> On Sun, Aug 26, 2018 at 06:24:55PM +0530, Jerin Jacob wrote:
> > Add support of MPLS packet type.
> > 
> > Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> 
> Acked-by: Olivier Matz <olivier.matz@6wind.com>

By the way, I've just submitted an implementation of the software parser
for MPLS.

https://mails.dpdk.org/archives/dev/2018-October/116691.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] mbuf: add FCoE packet type
  2018-10-23  7:44 ` [dpdk-dev] [PATCH 1/2] mbuf: add FCoE " Olivier Matz
@ 2018-10-25 13:48   ` Thomas Monjalon
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2018-10-25 13:48 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev, Olivier Matz

23/10/2018 09:44, Olivier Matz:
> On Sun, Aug 26, 2018 at 06:24:54PM +0530, Jerin Jacob wrote:
> > Add support of FCoE packet type.
> > 
> > Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> 
> Acked-by: Olivier Matz <olivier.matz@6wind.com>

Series applied, thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-25 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-26 12:54 [dpdk-dev] [PATCH 1/2] mbuf: add FCoE packet type Jerin Jacob
2018-08-26 12:54 ` [dpdk-dev] [PATCH 2/2] mbuf: add MPLS " Jerin Jacob
2018-10-23  7:45   ` Olivier Matz
2018-10-23  7:48     ` Olivier Matz
2018-10-23  7:44 ` [dpdk-dev] [PATCH 1/2] mbuf: add FCoE " Olivier Matz
2018-10-25 13:48   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).