summaryrefslogtreecommitdiff
path: root/lib/netdev-native-tnl.c
diff options
context:
space:
mode:
authorJan Scheurich <jan.scheurich@ericsson.com>2017-08-05 13:41:10 +0800
committerBen Pfaff <blp@ovn.org>2017-08-07 11:26:16 -0700
commit478b14731cf32b20517fc02db9e13e9e36764469 (patch)
tree6cef254df64d0c23264a13b8dee20edc53d975e4 /lib/netdev-native-tnl.c
parente398127135006a26b5c067a5be6dc0c3b9bd4a98 (diff)
downloadopenvswitch-478b14731cf32b20517fc02db9e13e9e36764469.tar.gz
userspace: add NSH support to vxlan-gpe tunnels
Signed-off-by: Yi Yang <yi.y.yang@intel.com> Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/netdev-native-tnl.c')
-rw-r--r--lib/netdev-native-tnl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/netdev-native-tnl.c b/lib/netdev-native-tnl.c
index ef579409b..3264810f3 100644
--- a/lib/netdev-native-tnl.c
+++ b/lib/netdev-native-tnl.c
@@ -531,6 +531,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;
@@ -590,6 +593,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;