host stack: update stale copyright
[vpp.git] / src / vnet / session-apps / echo_server.c
index 2762347..d165fb3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2015-2017 Cisco and/or its affiliates.
+* Copyright (c) 2017-2019 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
@@ -29,7 +29,7 @@ typedef struct
 
   u32 app_index;               /**< Server app index */
   u32 my_client_index;         /**< API client handle */
-  u32 node_index;              /**< process node index for evnt scheduling */
+  u32 node_index;              /**< process node index for event scheduling */
 
   /*
    * Config params
@@ -240,14 +240,16 @@ echo_server_rx_callback (session_t * s)
       n_written = app_send_stream_raw (tx_fifo,
                                       esm->vpp_queue[thread_index],
                                       esm->rx_buf[thread_index],
-                                      actual_transfer, SESSION_IO_EVT_TX, 0);
+                                      actual_transfer, SESSION_IO_EVT_TX,
+                                      1 /* do_evt */ , 0);
     }
   else
     {
       n_written = app_send_dgram_raw (tx_fifo, &at,
                                      esm->vpp_queue[s->thread_index],
                                      esm->rx_buf[thread_index],
-                                     actual_transfer, SESSION_IO_EVT_TX, 0);
+                                     actual_transfer, SESSION_IO_EVT_TX,
+                                     1 /* do_evt */ , 0);
     }
 
   if (n_written != max_transfer)