-#include <vnet/session/segment_manager.h>
-#include <svm/queue.h>
-
-#define HALF_OPEN_LOOKUP_INVALID_VALUE ((u64)~0)
-#define INVALID_INDEX ((u32)~0)
-#define SESSION_PROXY_LISTENER_INDEX ((u32)~0 - 1)
-#define SESSION_LOCAL_HANDLE_PREFIX 0x7FFFFFFF
-
-/* TODO decide how much since we have pre-data as well */
-#define MAX_HDRS_LEN 100 /* Max number of bytes for headers */
-
-typedef enum
-{
- FIFO_EVENT_APP_RX,
- SESSION_IO_EVT_CT_RX,
- FIFO_EVENT_APP_TX,
- SESSION_IO_EVT_CT_TX,
- FIFO_EVENT_DISCONNECT,
- FIFO_EVENT_BUILTIN_RX,
- FIFO_EVENT_RPC,
- SESSION_CTRL_EVT_BOUND,
- SESSION_CTRL_EVT_ACCEPTED,
- SESSION_CTRL_EVT_ACCEPTED_REPLY,
- SESSION_CTRL_EVT_CONNECTED,
- SESSION_CTRL_EVT_CONNECTED_REPLY,
- SESSION_CTRL_EVT_DISCONNECTED,
- SESSION_CTRL_EVT_DISCONNECTED_REPLY,
- SESSION_CTRL_EVT_RESET,
- SESSION_CTRL_EVT_RESET_REPLY
-} session_evt_type_t;
-
-static inline const char *
-fifo_event_type_str (session_evt_type_t et)
-{
- switch (et)
- {
- case FIFO_EVENT_APP_RX:
- return "FIFO_EVENT_APP_RX";
- case FIFO_EVENT_APP_TX:
- return "FIFO_EVENT_APP_TX";
- case FIFO_EVENT_DISCONNECT:
- return "FIFO_EVENT_DISCONNECT";
- case FIFO_EVENT_BUILTIN_RX:
- return "FIFO_EVENT_BUILTIN_RX";
- case FIFO_EVENT_RPC:
- return "FIFO_EVENT_RPC";
- default:
- return "UNKNOWN FIFO EVENT";
- }
-}
-
-typedef enum
-{
- SESSION_MQ_IO_EVT_RING,
- SESSION_MQ_CTRL_EVT_RING,
- SESSION_MQ_N_RINGS
-} session_mq_rings_e;