Skip to content

Commit

Permalink
userspace: add NSH support to vxlan-gpe tunnels
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
JanScheurich authored and blp committed Aug 7, 2017
1 parent e398127 commit 478b147
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/netdev-native-tnl.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 478b147

Please sign in to comment.