mbuf: add NSH packet type
authorJingjing Wu <jingjing.wu@intel.com>
Tue, 3 May 2016 05:51:11 +0000 (13:51 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 23 Jun 2016 19:39:42 +0000 (21:39 +0200)
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Zhe Tao <zhe.tao@intel.com>
app/test-pmd/rxonly.c
lib/librte_mbuf/rte_mbuf.h

index c69b344..fbf287d 100644 (file)
@@ -179,6 +179,9 @@ pkt_burst_receive(struct fwd_stream *fs)
                        case RTE_PTYPE_L2_ETHER_LLDP:
                                printf(" - (outer) L2 type: ETHER_LLDP");
                                break;
+                       case RTE_PTYPE_L2_ETHER_NSH:
+                               printf(" - (outer) L2 type: ETHER_NSH");
+                               break;
                        default:
                                printf(" - (outer) L2 type: Unknown");
                                break;
index 8798c41..15e3a10 100644 (file)
@@ -307,6 +307,13 @@ extern "C" {
  * <'ether type'=0x88CC>
  */
 #define RTE_PTYPE_L2_ETHER_LLDP             0x00000004
+/**
+ * NSH (Network Service Header) packet type.
+ *
+ * Packet format:
+ * <'ether type'=0x894F>
+ */
+#define RTE_PTYPE_L2_ETHER_NSH              0x00000005
 /**
  * Mask of layer 2 packet types.
  * It is used for outer packet for tunneling cases.