tcp: correct tcp connection lookup condition
Type: fix
@@ -2717,6 +2717,8 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
is_fin0 = tcp_is_fin (tcp0);
if (CLIB_DEBUG)
+ {
+ if (!(tc0->connection.flags & TRANSPORT_CONNECTION_F_NO_LOOKUP))
{
tcp_connection_t *tmp;
tmp = tcp_lookup_connection (tc0->c_fib_index, b0, thread_index,
@@ -2728,6 +2730,7 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
goto drop;
}
}
+ }
/*
* Special treatment for CLOSED
