From d6c30d9cae3ec8946c75d9ed87d40c053e2c083a Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 29 Jan 2018 05:11:24 -0800 Subject: vlmemory/svm: fix client detach from svm region Clients cannot know at svm region detach time if the shm backing files have been recreated (e.g., if vpp restarts) and therefore should not try to unlink them. Otherwise, terminating clients attached to previous instantiations of a re-allocated region end up making the new instance un-mappable by removing its backing file. Change-Id: Idcd0cab776e63fd75b821bc9f0fac58217b9ccbe Signed-off-by: Florin Coras --- src/vlibmemory/memory_shared.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vlibmemory/memory_shared.h') diff --git a/src/vlibmemory/memory_shared.h b/src/vlibmemory/memory_shared.h index deaa62166ae..67ead7d2877 100644 --- a/src/vlibmemory/memory_shared.h +++ b/src/vlibmemory/memory_shared.h @@ -117,6 +117,7 @@ void *vl_mem_api_alloc_as_if_client_w_reg (vl_api_registration_t * reg, void vl_msg_api_free (void *a); int vl_map_shmem (const char *region_name, int is_vlib); void vl_unmap_shmem (void); +void vl_unmap_shmem_client (void); void vl_register_mapped_shmem_region (svm_region_t * rp); void vl_msg_api_send_shmem (svm_queue_t * q, u8 * elem); void vl_msg_api_send_shmem_nolock (svm_queue_t * q, u8 * elem); -- cgit 1.2.3-korg