diff options
author | Steven Luong <sluong@cisco.com> | 2022-10-25 13:09:11 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-10-26 18:03:30 +0000 |
commit | d810a6e218e9af3c3bccd58c9a2d925a7f12242e (patch) | |
tree | 66ee520bbe6c31be2c893a9dc1d0717204dfbe79 /src/vnet/session/session_node.c | |
parent | 5efc0cdf48e45ff457c5ddead157165b725e78f3 (diff) |
session: add session event log for session state
To aid sesipon debug, add session event log in SM debug to track
the session state.
Type: improvement
Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I6909cf969cd5b6a3ea5a06d08ae32c2f1d48f686
Diffstat (limited to 'src/vnet/session/session_node.c')
-rw-r--r-- | src/vnet/session/session_node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index c29e0590aa8..8f6503d2806 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -486,13 +486,13 @@ session_mq_accepted_reply_handler (session_worker_t *wrk, /* Special handling for cut-through sessions */ if (!session_has_transport (s)) { - s->session_state = SESSION_STATE_READY; + session_set_state (s, SESSION_STATE_READY); ct_session_connect_notify (s, SESSION_E_NONE); return; } old_state = s->session_state; - s->session_state = SESSION_STATE_READY; + session_set_state (s, SESSION_STATE_READY); if (!svm_fifo_is_empty_prod (s->rx_fifo)) app_worker_lock_and_send_event (app_wrk, s, SESSION_IO_EVT_RX); @@ -501,7 +501,7 @@ session_mq_accepted_reply_handler (session_worker_t *wrk, if (old_state >= SESSION_STATE_TRANSPORT_CLOSING) { app_worker_close_notify (app_wrk, s); - s->session_state = old_state; + session_set_state (s, old_state); return; } } |