[dpdk-dev] [PATCH v1 1/7] net: define Mellanox ether type for embed metadata
Nelio Laranjeiro
nelio.laranjeiro at 6wind.com
Thu Nov 23 17:13:03 CET 2017
Mellanox detains an Ethernet to embed additional metadata in Ethernet
frames [1]. This Ether type is necessary for some NIC to transform packets
using an offloading.
[1] http://standards-oui.ieee.org/ethertype/eth.txt
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
---
lib/librte_net/rte_ether.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h
index 06d7b486c..f118b6e01 100644
--- a/lib/librte_net/rte_ether.h
+++ b/lib/librte_net/rte_ether.h
@@ -334,6 +334,8 @@ struct vxlan_hdr {
#define ETHER_TYPE_SLOW 0x8809 /**< Slow protocols (LACP and Marker). */
#define ETHER_TYPE_TEB 0x6558 /**< Transparent Ethernet Bridging. */
#define ETHER_TYPE_LLDP 0x88CC /**< LLDP Protocol. */
+#define ETHER_TYPE_MLNX 0X8CE4
+/**< Mellanox additional metadata in Ethernet frames. */
#define ETHER_VXLAN_HLEN (sizeof(struct udp_hdr) + sizeof(struct vxlan_hdr))
/**< VXLAN tunnel header length. */
--
2.11.0
More information about the dev
mailing list