diff options
author | Florin Coras <fcoras@cisco.com> | 2019-07-19 07:34:13 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-07-19 21:45:24 +0000 |
commit | cca9618a5e1b126263ef262974b0b4d6ac6352a2 (patch) | |
tree | 6d2eda73ebd807581c70ab2806abfd8e7d20fe12 /src/vnet/session/session.c | |
parent | 028eaf075ad884063e229476f5733d3eea4af82c (diff) |
session: improve event logging
Type:feature
Change-Id: I67a52ee48963a66915e2ebd116626eb9c296a9a5
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 9769c013e2f..4e340687041 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -176,7 +176,7 @@ session_free (session_t * s) pool_put (session_main.wrk[thread_index].sessions, s); return; } - SESSION_EVT_DBG (SESSION_EVT_FREE, s); + SESSION_EVT (SESSION_EVT_FREE, s); pool_put (session_main.wrk[s->thread_index].sessions, s); } @@ -518,12 +518,7 @@ session_enqueue_notify_inline (session_t * s) return 0; } - /* *INDENT-OFF* */ - SESSION_EVT_DBG(SESSION_EVT_ENQ, s, ({ - ed->data[0] = SESSION_IO_EVT_RX; - ed->data[1] = svm_fifo_max_dequeue_prod (s->rx_fifo); - })); - /* *INDENT-ON* */ + SESSION_EVT (SESSION_EVT_ENQ, s, svm_fifo_max_dequeue_prod (s->rx_fifo)); s->flags &= ~SESSION_F_RX_EVT; if (PREDICT_FALSE (app_worker_lock_and_send_event (app_wrk, s, @@ -1393,10 +1388,6 @@ session_manager_main_enable (vlib_main_t * vm) clib_rwlock_init (&smm->wrk[i].peekers_rw_locks); } -#if SESSION_DEBUG - vec_validate (smm->last_event_poll_by_thread, num_threads - 1); -#endif - /* Allocate vpp event queues segment and queue */ session_vpp_event_queues_allocate (smm); |