diff options
author | 2025-01-21 16:07:28 -0500 | |
---|---|---|
committer | 2025-01-22 20:38:06 +0000 | |
commit | 96b568a495114baccc391ca5030ad159cd082b74 (patch) | |
tree | 4e0c4826e3cadc83f3eb50a71e1cff8b42025089 /src/plugins/hs_apps/proxy.c | |
parent | b0761fd464936870a65f8d49eca8daa8215efdf2 (diff) |
session: cleanup io event functions
Program session events using session handles instead of fifos.
Type: improvement
Change-Id: I69063190598c2b4dc1104f2938f27c6cd057341a
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins/hs_apps/proxy.c')
-rw-r--r-- | src/plugins/hs_apps/proxy.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/plugins/hs_apps/proxy.c b/src/plugins/hs_apps/proxy.c index f6b7f52d80c..38d96bbf5ac 100644 --- a/src/plugins/hs_apps/proxy.c +++ b/src/plugins/hs_apps/proxy.c @@ -1099,13 +1099,7 @@ active_open_rx_callback (session_t * s) * Send event for server tx fifo */ if (svm_fifo_set_event (proxy_tx_fifo)) - { - u8 thread_index = proxy_tx_fifo->master_thread_index; - u32 session_index = proxy_tx_fifo->vpp_session_index; - return session_send_io_evt_to_thread_custom (&session_index, - thread_index, - SESSION_IO_EVT_TX); - } + session_program_tx_io_evt (proxy_tx_fifo->vpp_sh, SESSION_IO_EVT_TX); if (svm_fifo_max_enqueue (proxy_tx_fifo) <= TCP_MSS) svm_fifo_add_want_deq_ntf (proxy_tx_fifo, SVM_FIFO_WANT_DEQ_NOTIF); @@ -1136,9 +1130,7 @@ active_open_tx_callback (session_t * ao_s) if (sc->pair.is_http) { /* notify HTTP transport */ - session_t *po = session_get_from_handle (sc->pair.session_handle); - session_send_io_evt_to_thread_custom ( - &po->session_index, po->thread_index, SESSION_IO_EVT_RX); + session_program_rx_io_evt (sc->pair.session_handle); } else { |