diff mbox

[ovs-dev,4/6] userspace: add NSH support to vxlan-gpe tunnels

Message ID 1499226343-123663-5-git-send-email-yi.y.yang@intel.com
State Superseded
Headers show

Commit Message

Yang, Yi July 5, 2017, 3:45 a.m. UTC
From: Jan Scheurich <jan.scheurich@ericsson.com>

Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com>
---
 lib/netdev-native-tnl.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/lib/netdev-native-tnl.c b/lib/netdev-native-tnl.c
index 7f3cf98..f5483a3 100644
--- a/lib/netdev-native-tnl.c
+++ b/lib/netdev-native-tnl.c
@@ -529,6 +529,9 @@  netdev_vxlan_pop_header(struct dp_packet *packet)
         case VXLAN_GPE_NP_IPV6:
             next_pt = PT_IPV6;
             break;
+        case VXLAN_GPE_NP_NSH:
+            next_pt = PT_NSH;
+            break;
         case VXLAN_GPE_NP_ETHERNET:
             next_pt = PT_ETH;
             break;
@@ -588,6 +591,9 @@  netdev_vxlan_build_header(const struct netdev *netdev,
             case ETH_TYPE_IPV6:
                 vxh->vx_gpe.next_protocol = VXLAN_GPE_NP_IPV6;
                 break;
+            case ETH_TYPE_NSH:
+                vxh->vx_gpe.next_protocol = VXLAN_GPE_NP_NSH;
+                break;
             case ETH_TYPE_TEB:
                 vxh->vx_gpe.next_protocol = VXLAN_GPE_NP_ETHERNET;
                 break;