aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/segment_manager.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-05-14 05:32:18 +0000
committerFlorin Coras <fcoras@cisco.com>2020-05-15 16:14:12 +0000
commitc8e812f6fb88dcd537e4de9333b5acf32e6f1ca0 (patch)
tree29af036ec3954aad763dd1e5b407f4496e8f7e6d /src/vnet/session/segment_manager.h
parent18a86c6e6069cbc9a0d2294ebb7f7cca5f616f84 (diff)
session: track detached listener segment managers
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Iae734a526d2e7befd9738054d028df0062b67000
Diffstat (limited to 'src/vnet/session/segment_manager.h')
-rw-r--r--src/vnet/session/segment_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/session/segment_manager.h b/src/vnet/session/segment_manager.h
index 1710b7b7697..1e6b14d2586 100644
--- a/src/vnet/session/segment_manager.h
+++ b/src/vnet/session/segment_manager.h
@@ -42,6 +42,12 @@ typedef struct _segment_manager_props
u8 pct_first_alloc; /**< pct of fifo size to alloc */
} segment_manager_props_t;
+typedef enum seg_manager_flag_
+{
+ SEG_MANAGER_F_DETACHED = 1 << 0,
+ SEG_MANAGER_F_DETACHED_LISTENER = 1 << 1,
+} seg_manager_flag_t;
+
typedef struct _segment_manager
{
/** Pool of segments allocated by this manager */
@@ -65,6 +71,8 @@ typedef struct _segment_manager
*/
svm_msg_q_t *event_queue;
+ u8 flags;
+
u32 max_fifo_size;
u8 high_watermark;
u8 low_watermark;