diff options
author | Florin Coras <fcoras@cisco.com> | 2024-03-22 16:29:09 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-03-29 21:48:20 +0000 |
commit | 7e9e2bd8f2240dc286c96440fca43ada3c3056d6 (patch) | |
tree | 9b2d11e9e3d6d4b1e4006610d2581e4edab25929 /src | |
parent | a58fce23de31778fc3df306d7953e0eef068b4a9 (diff) |
session: add new api for enq tx io events
Type: improvement
Change-Id: Iefe5c2e610a26241a88ca783ac548fd8f2317bb0
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/session/session.c | 7 | ||||
-rw-r--r-- | src/vnet/session/session.h | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index e2fd1644fbd..633aebd5483 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -97,6 +97,13 @@ session_send_io_evt_to_thread_custom (void *data, u32 thread_index, } int +session_program_tx_io_evt (session_handle_tu_t sh, session_evt_type_t evt_type) +{ + return session_send_evt_to_thread ((void *) &sh.session_index, 0, + (u32) sh.thread_index, evt_type); +} + +int session_send_ctrl_evt_to_thread (session_t * s, session_evt_type_t evt_type) { /* only events supported are disconnect, shutdown and reset */ diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index f3337dd64b4..aa4776b154f 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -452,13 +452,14 @@ void session_transport_half_close (session_t *s); void session_transport_close (session_t * s); void session_transport_reset (session_t * s); void session_transport_cleanup (session_t * s); -int session_send_io_evt_to_thread (svm_fifo_t * f, - session_evt_type_t evt_type); int session_enqueue_notify (session_t *s); int session_dequeue_notify (session_t * s); int session_enqueue_notify_cl (session_t *s); +int session_send_io_evt_to_thread (svm_fifo_t *f, session_evt_type_t evt_type); int session_send_io_evt_to_thread_custom (void *data, u32 thread_index, session_evt_type_t evt_type); +int session_program_tx_io_evt (session_handle_tu_t sh, + session_evt_type_t evt_type); void session_send_rpc_evt_to_thread (u32 thread_index, void *fp, void *rpc_args); void session_send_rpc_evt_to_thread_force (u32 thread_index, void *fp, |