summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNemanja Marjanovic <nemanja.marjanovic@intel.com>2019-01-21 11:11:24 +0000
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2019-03-29 20:55:25 +0100
commita2fe4c1b3803f3b4c060c03fd51fdc376c05ec43 (patch)
treeffcf8d5e06d7d685537272655e38d09b68b17bdc
parentd08b6845e406181be8b231b03168d07dcbe1ac6d (diff)
downloaddpdk-next-eventdev-a2fe4c1b3803f3b4c060c03fd51fdc376c05ec43.zip
dpdk-next-eventdev-a2fe4c1b3803f3b4c060c03fd51fdc376c05ec43.tar.gz
dpdk-next-eventdev-a2fe4c1b3803f3b4c060c03fd51fdc376c05ec43.tar.xz
net: add PPPoE ethertypes
Add PPPoE ethertypes in to rte_ether.h. Signed-off-by: Nemanja Marjanovic <nemanja.marjanovic@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
-rw-r--r--lib/librte_net/rte_ether.h2
-rw-r--r--lib/librte_pipeline/rte_table_action.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h
index c2c5e24..54822df 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 ba8fd3f..6712bb6 100644
--- a/lib/librte_pipeline/rte_table_action.c
+++ b/lib/librte_pipeline/rte_table_action.c
@@ -473,8 +473,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 {