From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id BEA0E2A5D for ; Thu, 23 Nov 2017 17:13:27 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id b189so17550984wmd.5 for ; Thu, 23 Nov 2017 08:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=tG+Xx/Jo4JadvJS8l+7aXXU3gRHw4Abko0lIJXke6ck=; b=ASNBmHrsjlXcS1/iGol2MRTbxkjEA0NkCIUHxH0/ESLJMCJj/H6PDLtPlftHFaRw5Z hvcJlEZZxkbKjcQGw6OWfDrfreAiT9tQT44ieQijlLXEW+C1YJmcPNlvnGmM12wl1B2z ASj025ZHVblKUMsg00mfefChS4riGKCufw/y5/sw4InwXghwqbAuupXQPKkcMBU0Hm/e Zz+HnS4ZXnc1EwaTjXzDijEqM8xjGqxYG6w5KxHcvkzn7o2+k3GdOzFvoxO+p4q10SHt 1G+4/M6SemHFNAPkN5ZvDrNFkyLKRP/vM+0VgM70U9i2Qn9JXFUOeRahSCenNX65LhN7 A0IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=tG+Xx/Jo4JadvJS8l+7aXXU3gRHw4Abko0lIJXke6ck=; b=ZSp/CgamhOGjsWV3HAPoJPAGTvzLrqh2d0T4xJ2CvxzUwIrGcnkmwNYnkSLO1zB3Wr pzj1igChP/jI/HKzjcB8EN5Hrjb+81qDUS58xuOxnbmsUg5mjbN8RBKTi/hbN98+STJm 8abIbxqUiIgDHOx3lSORgLzaDtrhti8poMRJUbdE54YNQKjeVtdvW1jU/QSKC7V4QH5e DWrjox97Afb/AE9gGaV6N5LYesBkgNNlXUrAkYzK6Ct9tRfPIqbqbj5kJiFxjy8QhyRJ 6v/+a4zl5q5H2+yeNKOwV6845XDns7txQAL/uQgfpTchAQVlxzlaLcJTPD1pN7Y0m7JT VFZQ== X-Gm-Message-State: AJaThX5xFGYa+IClbjgYADK+PqJHwV4dxMMCBbborRcybmXCDUoIrSBq O0c+GchbCp0nXqQJ1snQgM0pr0cDFg== X-Google-Smtp-Source: AGs4zMaQtcEwHe2kE5dEPeQWulSssniwvBjvN4PA06avo3RfQkrxIAiSgWQkcPE0KnfYmA+9G/GTDw== X-Received: by 10.80.144.248 with SMTP id d53mr34004895eda.234.1511453607063; Thu, 23 Nov 2017 08:13:27 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id u10sm14663036edm.56.2017.11.23.08.13.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 08:13:26 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Thu, 23 Nov 2017 17:13:03 +0100 Message-Id: <1bed7206d20792b01da655714955b00ba99cb4f6.1511453340.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v1 1/7] net: define Mellanox ether type for embed metadata X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 16:13:27 -0000 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 --- 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