aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/segment_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session/segment_manager.h')
-rw-r--r--src/vnet/session/segment_manager.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/vnet/session/segment_manager.h b/src/vnet/session/segment_manager.h
index aae4f2e4e51..0e5f62414e5 100644
--- a/src/vnet/session/segment_manager.h
+++ b/src/vnet/session/segment_manager.h
@@ -24,22 +24,17 @@
typedef struct _segment_manager_properties
{
- /** Session fifo sizes. */
- u32 rx_fifo_size;
- u32 tx_fifo_size;
- u32 evt_q_size;
-
- /** Configured additional segment size */
- u32 add_segment_size;
-
- /** Flags */
- u8 add_segment:1; /**< can add new segments */
- u8 use_mq_eventfd:1; /**< use eventfds for mqs */
- u8 reserved:6;
-
- /** Segment type: if set to SSVM_N_TYPES, private segments are used */
- ssvm_segment_type_t segment_type;
-
+ u32 rx_fifo_size; /**< receive fifo size */
+ u32 tx_fifo_size; /**< transmit fifo size */
+ u32 evt_q_size; /**< event queue length */
+ u32 segment_size; /**< first segment size */
+ u32 prealloc_fifos; /**< preallocated fifo pairs */
+ u32 add_segment_size; /**< additional segment size */
+ u8 add_segment:1; /**< can add new segments flag */
+ u8 use_mq_eventfd:1; /**< use eventfds for mqs flag */
+ u8 reserved:6; /**< reserved flags */
+ ssvm_segment_type_t segment_type; /**< seg type: if set to SSVM_N_TYPES,
+ private segments are used */
} segment_manager_properties_t;
typedef struct _segment_manager
@@ -50,8 +45,8 @@ typedef struct _segment_manager
/** rwlock that protects the segments pool */
clib_rwlock_t segments_rwlock;
- /** Owner app index */
- u32 app_index;
+ /** Owner app worker index */
+ u32 app_wrk_index;
/**
* First segment should not be deleted unless segment manger is deleted.