From b384b543313b6b47a277c903e9d4fcd4343054fa Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 15 Jan 2018 01:08:33 -0800 Subject: session: add support for memfd segments - update segment manager and session api to work with both flavors of ssvm segments - added generic ssvm slave/master init and del functions - cleanup/refactor tcp_echo - fixed uses of svm fifo pool as vector Change-Id: Ieee8b163faa407da6e77e657a2322de213a9d2a0 Signed-off-by: Florin Coras --- src/vlibmemory/memory_shared.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vlibmemory/memory_shared.h') diff --git a/src/vlibmemory/memory_shared.h b/src/vlibmemory/memory_shared.h index 8a7667c14d3..deaa62166ae 100644 --- a/src/vlibmemory/memory_shared.h +++ b/src/vlibmemory/memory_shared.h @@ -99,6 +99,9 @@ typedef struct vl_shmem_hdr_ /* Number of garbage-collected messages */ u32 garbage_collects; + + /* Socket file index used to bootstrap shmem region */ + u32 clib_file_index; } vl_shmem_hdr_t; #define VL_SHM_VERSION 2 @@ -109,6 +112,8 @@ void *vl_msg_api_alloc (int nbytes); void *vl_msg_api_alloc_or_null (int nbytes); void *vl_msg_api_alloc_as_if_client (int nbytes); void *vl_msg_api_alloc_as_if_client_or_null (int nbytes); +void *vl_mem_api_alloc_as_if_client_w_reg (vl_api_registration_t * reg, + int nbytes); void vl_msg_api_free (void *a); int vl_map_shmem (const char *region_name, int is_vlib); void vl_unmap_shmem (void); -- cgit 1.2.3-korg