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.h | |
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.h')
-rw-r--r-- | src/vnet/session/session.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index 73c6dc82988..1e3229171da 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -113,6 +113,10 @@ typedef struct session_worker_ u32 last_tx_packets; +#if SESSION_DEBUG + /** last event poll time by thread */ + f64 last_event_poll; +#endif } session_worker_t; typedef int (session_fifo_rx_fn) (vlib_main_t * vm, @@ -178,14 +182,6 @@ typedef struct session_main_ /** Preallocate session config parameter */ u32 preallocated_sessions; -#if SESSION_DEBUG - /** - * last event poll time by thread - * Debug only. Will cause false cache-line sharing as-is - */ - f64 *last_event_poll_by_thread; -#endif - } session_main_t; extern session_main_t session_main; |