From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 64E672617 for ; Thu, 26 May 2016 10:42:01 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 26 May 2016 01:42:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,367,1459839600"; d="scan'208";a="989091372" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 26 May 2016 01:42:00 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 May 2016 01:42:00 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 May 2016 01:41:59 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.104]) by SHSMSX152.ccr.corp.intel.com ([10.239.6.52]) with mapi id 14.03.0248.002; Thu, 26 May 2016 16:41:58 +0800 From: "Pei, Yulong" To: "Wu, Jingjing" , "Zhang, Helin" CC: "Wu, Jingjing" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 1/2] mbuf: new NSH packet type Thread-Index: AQHRpP/sOxWC0/W3rESaD8Jj6uApEp/LCrzw Date: Thu, 26 May 2016 08:41:57 +0000 Message-ID: <188971FCDA171749BED5DA74ABF3E6F003572C5F@shsmsx102.ccr.corp.intel.com> References: <1462254672-6563-1-git-send-email-jingjing.wu@intel.com> <1462254672-6563-2-git-send-email-jingjing.wu@intel.com> In-Reply-To: <1462254672-6563-2-git-send-email-jingjing.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2ZmNmQyNWYtYmY5Ny00MGZkLWI4OTgtNmMyMDNmNjNjOTk4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImJhcHdcL01RdFpUKzZmbnBiT21QSElPWk9GUnZwYTY4NkRZSXduOGNyZFFrPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/2] mbuf: new NSH packet type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 08:42:01 -0000 Test-by: Yulong.pei@intel.com ether+nsh ether+nsh+ip ether+nsh+ip+icmp ether+nsh+ip_frag ether+nsh+ip+tcp ether+nsh+ip+udp ether+nsh+ip+sctp ether+nsh+ipv6 ether+nsh+ipv6+icmp ether+nsh+ipv6_frag ether+nsh+ipv6+tcp ether+nsh+ipv6+udp ether+nsh+ipv6+sctp Above combos can be recognized correctly. -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jingjing Wu Sent: Tuesday, May 3, 2016 1:51 PM To: Zhang, Helin Cc: Wu, Jingjing ; dev@dpdk.org Subject: [dpdk-dev] [PATCH 1/2] mbuf: new NSH packet type Signed-off-by: Jingjing Wu --- lib/librte_mbuf/rte_mbuf.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index = 529debb..79edae3 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -274,6 +274,13 @@ extern "C" { */ #define RTE_PTYPE_L2_ETHER_LLDP 0x00000004 /** + * NSH (Network Service Header) packet type. + * + * Packet format: + * <'ether type'=3D0x894F> + */ +#define RTE_PTYPE_L2_ETHER_NSH 0x00000005 +/** * Mask of layer 2 packet types. * It is used for outer packet for tunneling cases. */ -- 2.4.0