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/sctp/sctp_output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/sctp/sctp_output.c') diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c index a65f166a9c6..3c83f68dc29 100644 --- a/src/vnet/sctp/sctp_output.c +++ b/src/vnet/sctp/sctp_output.c @@ -406,6 +406,8 @@ sctp_enqueue_to_ip_lookup (vlib_main_t * vm, vlib_buffer_t * b, u32 bi, u8 is_ip4, u32 fib_index) { sctp_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); } /** -- cgit 1.2.3-korg