session: add session process node
[vpp.git] / src / vnet / sctp / sctp_output.c
index e2738e9..3c83f68 100644 (file)
@@ -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);
 }
 
 /**
@@ -1702,7 +1704,7 @@ sctp46_output_inline (vlib_main_t * vm,
            {
              clib_warning
                ("Trying to send an unrecognized chunk... something is really bad.");
-             error0 = SCTP_ERROR_UNKOWN_CHUNK;
+             error0 = SCTP_ERROR_UNKNOWN_CHUNK;
              next0 = SCTP_OUTPUT_NEXT_DROP;
              goto done;
            }
@@ -1735,7 +1737,7 @@ sctp46_output_inline (vlib_main_t * vm,
                                      connection.rmt_port,
                                      sctp_hdr->dst_port);
 
-             error0 = SCTP_ERROR_UNKOWN_CHUNK;
+             error0 = SCTP_ERROR_UNKNOWN_CHUNK;
              next0 = SCTP_OUTPUT_NEXT_DROP;
              goto done;
            }
@@ -1758,7 +1760,7 @@ sctp46_output_inline (vlib_main_t * vm,
                 sctp_chunk_to_string (chunk_type),
                 sctp_state_to_string (sctp_conn->state));
 
-             error0 = SCTP_ERROR_UNKOWN_CHUNK;
+             error0 = SCTP_ERROR_UNKNOWN_CHUNK;
              next0 = SCTP_OUTPUT_NEXT_DROP;
              goto done;