X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Flisp-gpe%2Fdecap.c;h=4684c29315e1f1cb9c8620ce2e46f58d612a876a;hb=324112fad06e0461958f22827f944595466e1891;hp=a583666fcf4c8ae3a654774f420e2763f2194e78;hpb=0443212371ec7cb68be297ed06ad1c3a39d23713;p=vpp.git diff --git a/vnet/vnet/lisp-gpe/decap.c b/vnet/vnet/lisp-gpe/decap.c index a583666fcf4..4684c29315e 100644 --- a/vnet/vnet/lisp-gpe/decap.c +++ b/vnet/vnet/lisp-gpe/decap.c @@ -180,8 +180,10 @@ lisp_gpe_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, /* map iid/vni to lisp-gpe sw_if_index which is used by ipx_input to * decide the rx vrf and the input features to be applied */ - si0 = hash_get(lgm->tunnel_term_sw_if_index_by_vni, lh0->iid); - si1 = hash_get(lgm->tunnel_term_sw_if_index_by_vni, lh1->iid); + si0 = hash_get(lgm->tunnel_term_sw_if_index_by_vni, + clib_net_to_host_u32 (lh0->iid)); + si1 = hash_get(lgm->tunnel_term_sw_if_index_by_vni, + clib_net_to_host_u32 (lh1->iid)); if (si0) { @@ -297,7 +299,8 @@ lisp_gpe_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, /* map iid/vni to lisp-gpe sw_if_index which is used by ipx_input to * decide the rx vrf and the input features to be applied */ - si0 = hash_get(lgm->tunnel_term_sw_if_index_by_vni, lh0->iid); + si0 = hash_get(lgm->tunnel_term_sw_if_index_by_vni, + clib_net_to_host_u32 (lh0->iid)); if (si0) {