summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/vxlan-gpe/decap.c
diff options
context:
space:
mode:
authorKeith Burns (alagalah) <alagalah@gmail.com>2016-05-16 09:53:13 -0700
committerKeith Burns (alagalah) <alagalah@gmail.com>2016-05-16 11:54:01 -0700
commite7a40e86b1f7f2325ebcff1d2506ef6a81536955 (patch)
treeb306807e6b64736bfafa440ed6b1b6d40328ed11 /vnet/vnet/vxlan-gpe/decap.c
parent72a7ded3762ef54867fc8b35ec8082c406c84005 (diff)
VPP-61 Patch2/2 Removing NSH from VPP for move to NSH_SFC
Change-Id: I76359b621b2edc599cf2e9ee845d97293a5d46f7 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'vnet/vnet/vxlan-gpe/decap.c')
-rw-r--r--vnet/vnet/vxlan-gpe/decap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnet/vnet/vxlan-gpe/decap.c b/vnet/vnet/vxlan-gpe/decap.c
index aed5857d0b1..870871e7de6 100644
--- a/vnet/vnet/vxlan-gpe/decap.c
+++ b/vnet/vnet/vxlan-gpe/decap.c
@@ -142,8 +142,8 @@ vxlan_gpe_input (vlib_main_t * vm,
error0 = 0;
error1 = 0;
- next0 = (iuvn0->vxlan.protocol < VXLAN_GPE_INPUT_N_NEXT) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP;
- next1 = (iuvn1->vxlan.protocol < VXLAN_GPE_INPUT_N_NEXT) ? iuvn1->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP;
+ next0 = (iuvn0->vxlan.protocol < node->n_next_nodes) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP;
+ next1 = (iuvn1->vxlan.protocol < node->n_next_nodes) ? iuvn1->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP;
@@ -328,7 +328,7 @@ vxlan_gpe_input (vlib_main_t * vm,
tunnel_index0 = ~0;
error0 = 0;
- next0 = (iuvn0->vxlan.protocol < VXLAN_GPE_INPUT_N_NEXT) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP;
+ next0 = (iuvn0->vxlan.protocol < node->n_next_nodes) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP;
key0.local = iuvn0->ip4.dst_address.as_u32;
key0.remote = iuvn0->ip4.src_address.as_u32;