diff options
author | Florin Coras <fcoras@cisco.com> | 2018-05-16 19:28:24 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-18 07:49:59 +0000 |
commit | fd542f1085d3a06066168c2d38e7f328b5b26ee3 (patch) | |
tree | 6509d0115ff79f28175a747eef1b18ba6d807ce0 /src/vnet/session/session.h | |
parent | a23b615aa4b7bf1eee6ad099f41c3c8f1c85d723 (diff) |
session: add session process node
Add a session process node that handles main thread tx and retransmit in
order to avoid having a polling input node.
Change-Id: I3357e987c023a84b533b32793e37ab4204420f64
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r-- | src/vnet/session/session.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index d6cc2cb3327..b24e22923f1 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -254,6 +254,10 @@ struct _session_manager_main extern session_manager_main_t session_manager_main; extern vlib_node_registration_t session_queue_node; +extern vlib_node_registration_t session_queue_process_node; + +#define SESSION_Q_PROCESS_FLUSH_FRAMES 1 +#define SESSION_Q_PROCESS_STOP 2 /* * Session manager function @@ -594,6 +598,8 @@ int listen_session_get_local_session_endpoint (stream_session_t * listener, session_endpoint_t * sep); +void session_flush_frames_main_thread (vlib_main_t * vm); + always_inline u8 session_manager_is_enabled () { |