From fd542f1085d3a06066168c2d38e7f328b5b26ee3 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 16 May 2018 19:28:24 -0700 Subject: session: add session process node Add a session process node that handles main thread tx and retransmit in order to avoid having a polling input node. Change-Id: I3357e987c023a84b533b32793e37ab4204420f64 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp_output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/tcp') diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index fe6d09c2c0e..0d938cae372 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -675,6 +675,8 @@ tcp_enqueue_to_ip_lookup (vlib_main_t * vm, vlib_buffer_t * b, u32 bi, u8 is_ip4, u32 fib_index) { tcp_enqueue_to_ip_lookup_i (vm, b, bi, is_ip4, fib_index, 0); + if (vm->thread_index == 0 && vlib_num_workers ()) + session_flush_frames_main_thread (vm); } always_inline void -- cgit 1.2.3-korg