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/application_worker.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/application_worker.c')
-rw-r--r-- | src/vnet/session/application_worker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index d02149dc58f..2717ef01870 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -564,7 +564,7 @@ app_send_io_evt_rx (app_worker_t * app_wrk, session_t * s, u8 lock) evt = (session_event_t *) svm_msg_q_msg_data (mq, &msg); evt->fifo = s->rx_fifo; - evt->event_type = FIFO_EVENT_APP_RX; + evt->event_type = SESSION_IO_EVT_RX; (void) svm_fifo_set_event (s->rx_fifo); @@ -599,7 +599,7 @@ app_send_io_evt_tx (app_worker_t * app_wrk, session_t * s, u8 lock) ASSERT (!svm_msg_q_msg_is_invalid (&msg)); evt = (session_event_t *) svm_msg_q_msg_data (mq, &msg); - evt->event_type = FIFO_EVENT_APP_TX; + evt->event_type = SESSION_IO_EVT_TX; evt->fifo = s->tx_fifo; return app_enqueue_evt (mq, &msg, lock); @@ -625,7 +625,7 @@ static app_send_evt_handler_fn * const app_send_evt_handler_fns[3] = { int app_worker_send_event (app_worker_t * app, session_t * s, u8 evt_type) { - ASSERT (app && evt_type <= FIFO_EVENT_APP_TX); + ASSERT (app && evt_type <= SESSION_IO_EVT_TX); return app_send_evt_handler_fns[evt_type] (app, s, 0 /* lock */ ); } |