diff options
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/lisp-cp/control.c | 12 |
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) |