diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-03-29 09:39:23 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2017-03-30 09:26:16 +0200 |
commit | 65d5f0379337dda3ee3463d2fec5a4619df0e31d (patch) | |
tree | 7a487bdfe007e048ee9665e48f637c9fddb2cf02 /src/vnet/lisp-gpe/decap.c | |
parent | ee403b722f9b3fde7c80c90066a4bfebffd2909f (diff) |
LISP: fix IID in decap, VPP-676
Change-Id: I3f67d32d5d76069a27176deef6cba0c1a194b7ec
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe/decap.c')
-rw-r--r-- | src/vnet/lisp-gpe/decap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/lisp-gpe/decap.c b/src/vnet/lisp-gpe/decap.c index 50bfa4938db..d887a95f16c 100644 --- a/src/vnet/lisp-gpe/decap.c +++ b/src/vnet/lisp-gpe/decap.c @@ -256,9 +256,9 @@ 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 (tl0->sw_if_index_by_vni, - clib_net_to_host_u32 (lh0->iid)); + clib_net_to_host_u32 (lh0->iid << 8)); si1 = hash_get (tl1->sw_if_index_by_vni, - clib_net_to_host_u32 (lh1->iid)); + clib_net_to_host_u32 (lh1->iid << 8)); /* Required to make the l2 tag push / pop code work on l2 subifs */ |