[dpdk-dev] [PATCH v3 1/4] librte_ether:add an ETHER_TYPE_TEB macro

Declan Doherty declan.doherty at intel.com
Fri Feb 20 18:01:44 CET 2015


From: Jijiang Liu <jijiang.liu at intel.com>

Add an Ethernet type definition for Transparent Ethernet Bridging.

Signed-off-by: Jijiang Liu <jijiang.liu at intel.com>
Signed-off-by: Declan Doherty <declan.doherty at intel.com>
---
 lib/librte_ether/rte_ether.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_ether/rte_ether.h b/lib/librte_ether/rte_ether.h
index 7e7d22c..a8b3e1d 100644
--- a/lib/librte_ether/rte_ether.h
+++ b/lib/librte_ether/rte_ether.h
@@ -329,6 +329,7 @@ struct vxlan_hdr {
 #define ETHER_TYPE_VLAN 0x8100 /**< IEEE 802.1Q VLAN tagging. */
 #define ETHER_TYPE_1588 0x88F7 /**< IEEE 802.1AS 1588 Precise Time Protocol. */
 #define ETHER_TYPE_SLOW 0x8809 /**< Slow protocols (LACP and Marker). */
+#define ETHER_TYPE_TEB  0x6558 /**< Transparent Ethernet Bridging. */
 
 #define ETHER_VXLAN_HLEN (sizeof(struct udp_hdr) + sizeof(struct vxlan_hdr))
 /**< VXLAN tunnel header length. */
-- 
1.9.3



More information about the dev mailing list