diff mbox series

[ovs-dev,v1,1/5] datapath: ether: add NSH ethertype

Message ID 1515657217-105285-2-git-send-email-yi.y.yang@intel.com
State Superseded
Headers show
Series datapath: enable NSH support in kernel compat mode | expand

Commit Message

Yang, Yi Jan. 11, 2018, 7:53 a.m. UTC
Upstream commit:
  commit 155e6f649757c902901e599c268f8b575ddac1f8
  Author: Jiri Benc <jbenc@redhat.com>
  Date:   Mon Aug 28 21:43:21 2017 +0200

    ether: add NSH ethertype

    The NSH draft says:

       An IEEE EtherType, 0x894F, has been allocated for NSH.

    Signed-off-by: Jiri Benc <jbenc@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Yi Yang <yi.y.yang@intel.com>
---
 datapath/linux/compat/include/linux/if_ether.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/datapath/linux/compat/include/linux/if_ether.h b/datapath/linux/compat/include/linux/if_ether.h
index 5eb99bc..c989c6e 100644
--- a/datapath/linux/compat/include/linux/if_ether.h
+++ b/datapath/linux/compat/include/linux/if_ether.h
@@ -19,6 +19,10 @@ 
 #define ETH_P_8021AD    0x88A8          /* 802.1ad Service VLAN         */
 #endif
 
+#ifndef ETH_P_NSH
+#define ETH_P_NSH       0x894F          /* Network Service Header */
+#endif
+
 #define inner_eth_hdr rpl_inner_eth_hdr
 static inline struct ethhdr *inner_eth_hdr(const struct sk_buff *skb)
 {