net: support VLAN in software packet type parser
[dpdk.git] / lib / librte_mbuf / rte_mbuf_ptype.h
index 65e9ced..a955c5a 100644 (file)
@@ -135,6 +135,13 @@ extern "C" {
  * <'ether type'=0x894F>
  */
 #define RTE_PTYPE_L2_ETHER_NSH              0x00000005
+/**
+ * VLAN packet type.
+ *
+ * Packet format:
+ * <'ether type'=[0x8100]>
+ */
+#define RTE_PTYPE_L2_ETHER_VLAN             0x00000006
 /**
  * Mask of layer 2 packet types.
  * It is used for outer packet for tunneling cases.