summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-09-22 18:02:17 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2016-09-22 22:42:51 +0000
commit87e40696d37492e470ff103a11ff3672d0f1e965 (patch)
tree47aab43b19ae44a53a4fdc5c0c238a6ee4802ef7
parent042d212cd887b53dfd89ec58975ada0dc2ca8f44 (diff)
Fix lisp-cp table_id lookup for punted packets
Change-Id: Ibe6f8c6fadb2e467353bafebffde04bc6eb72af3 Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--vnet/vnet/lisp-cp/control.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vnet/vnet/lisp-cp/control.c b/vnet/vnet/lisp-cp/control.c
index 5de30d5bb64..618acf25166 100644
--- a/vnet/vnet/lisp-cp/control.c
+++ b/vnet/vnet/lisp-cp/control.c
@@ -2876,12 +2876,12 @@ lisp_get_vni_from_buffer_ip (lisp_cp_main_t * lcm, vlib_buffer_t * b,
uword *vnip;
u32 vni = ~0, table_id = ~0;
- table_id =
- fib_table_get_table_id_for_sw_if_index (vnet_buffer (b)->sw_if_index
- [VLIB_RX],
- (version ==
- IP4 ? FIB_PROTOCOL_IP4 :
- FIB_PROTOCOL_IP6));
+ table_id = fib_table_get_table_id_for_sw_if_index ((version ==
+ IP4 ? FIB_PROTOCOL_IP4 :
+ FIB_PROTOCOL_IP6),
+ vnet_buffer
+ (b)->sw_if_index
+ [VLIB_RX]);
vnip = hash_get (lcm->vni_by_table_id, table_id);
if (vnip)