From patchwork Mon Jan 21 11:11:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nemanja Marjanovic X-Patchwork-Id: 49984 X-Patchwork-Delegate: cristian.dumitrescu@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 53B2D5B30; Mon, 21 Jan 2019 12:11:28 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 082CB568A for ; Mon, 21 Jan 2019 12:11:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2019 03:11:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,502,1539673200"; d="scan'208";a="140007613" Received: from silpixa00391954.ir.intel.com (HELO silpixa00391954.ger.corp.intel.com) ([10.237.223.32]) by fmsmga001.fm.intel.com with ESMTP; 21 Jan 2019 03:11:21 -0800 From: Nemanja Marjanovic To: dev@dpdk.org Cc: jasvinder.singh@intel.com, cristian.dumitrescu@intel.com, "Nemanja Marjanovic" Date: Mon, 21 Jan 2019 11:11:24 +0000 Message-Id: <20190121111124.16362-4-nemanja.marjanovic@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190121111124.16362-1-nemanja.marjanovic@intel.com> References: <20190121090210.49103-4-nemanja.marjanovic@intel.com> <20190121111124.16362-1-nemanja.marjanovic@intel.com> Subject: [dpdk-dev] [PATCH v6 4/4] net: add PPPoE ethertypes 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: "Nemanja Marjanovic" Add PPPoE ethertypes in to rte_ether.h. Signed-off-by: Nemanja Marjanovic Acked-by: Cristian Dumitrescu --- v5:Removing footer from patch. v6:Added missing acks. --- lib/librte_net/rte_ether.h | 2 ++ lib/librte_pipeline/rte_table_action.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h index c2c5e249f..54822df75 100644 --- a/lib/librte_net/rte_ether.h +++ b/lib/librte_net/rte_ether.h @@ -301,6 +301,8 @@ struct vxlan_hdr { #define ETHER_TYPE_RARP 0x8035 /**< Reverse Arp Protocol. */ #define ETHER_TYPE_VLAN 0x8100 /**< IEEE 802.1Q VLAN tagging. */ #define ETHER_TYPE_QINQ 0x88A8 /**< IEEE 802.1ad QinQ tagging. */ +#define ETHER_TYPE_PPPOE_DISCOVERY 0x8863 /**< PPPoE Discovery Stage. */ +#define ETHER_TYPE_PPPOE_SESSION 0x8864 /**< PPPoE Session Stage. */ #define ETHER_TYPE_ETAG 0x893F /**< IEEE 802.1BR E-Tag. */ #define ETHER_TYPE_1588 0x88F7 /**< IEEE 802.1AS 1588 Precise Time Protocol. */ #define ETHER_TYPE_SLOW 0x8809 /**< Slow protocols (LACP and Marker). */ diff --git a/lib/librte_pipeline/rte_table_action.c b/lib/librte_pipeline/rte_table_action.c index 466019934..ac8109f00 100644 --- a/lib/librte_pipeline/rte_table_action.c +++ b/lib/librte_pipeline/rte_table_action.c @@ -485,8 +485,6 @@ struct encap_mpls_data { uint32_t mpls_count; } __attribute__((__packed__)); -#define ETHER_TYPE_PPPOE_SESSION 0x8864 - #define PPP_PROTOCOL_IP 0x0021 struct pppoe_ppp_hdr {