diff options
author | Florin Coras <fcoras@cisco.com> | 2019-03-01 12:41:21 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-03-02 23:39:51 +0000 |
commit | f6c4313b6aa7746fe97afd398ce68c2efbef0600 (patch) | |
tree | 72b551a33adf3ae6017ca792c2f4c3a5f05c2477 /src/vnet/session-apps/echo_server.c | |
parent | 5fd3210be3a043c12c598df3d75dbe0aa606bfe5 (diff) |
session: cleanup session event types
Change-Id: I87bdf705341dd760f0be907a663aa64140977d39
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session-apps/echo_server.c')
-rw-r--r-- | src/vnet/session-apps/echo_server.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/session-apps/echo_server.c b/src/vnet/session-apps/echo_server.c index f9d3d93c4e7..1d99ff17a0f 100644 --- a/src/vnet/session-apps/echo_server.c +++ b/src/vnet/session-apps/echo_server.c @@ -195,7 +195,8 @@ echo_server_rx_callback (session_t * s) /* Program self-tap to retry */ if (svm_fifo_set_event (rx_fifo)) { - if (session_send_io_evt_to_thread (rx_fifo, FIFO_EVENT_BUILTIN_RX)) + if (session_send_io_evt_to_thread (rx_fifo, + SESSION_IO_EVT_BUILTIN_RX)) clib_warning ("failed to enqueue self-tap"); vec_validate (esm->rx_retries[s->thread_index], s->session_index); @@ -239,14 +240,14 @@ 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, FIFO_EVENT_APP_TX, 0); + actual_transfer, SESSION_IO_EVT_TX, 0); } else { n_written = app_send_dgram_raw (tx_fifo, &at, esm->vpp_queue[s->thread_index], esm->rx_buf[thread_index], - actual_transfer, FIFO_EVENT_APP_TX, 0); + actual_transfer, SESSION_IO_EVT_TX, 0); } if (n_written != max_transfer) |