diff options
author | Florin Coras <fcoras@cisco.com> | 2018-01-29 05:11:24 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-02-02 09:11:33 +0000 |
commit | d6c30d9cae3ec8946c75d9ed87d40c053e2c083a (patch) | |
tree | 3addc31e5f2499a04cf3ffb5873e3f4c3e5a54e2 /src/svm/svm_common.h | |
parent | f2d0611e1bca0cca0776dc833fd42ae7b358d8e4 (diff) |
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 <fcoras@cisco.com>
Diffstat (limited to 'src/svm/svm_common.h')
-rw-r--r-- | src/svm/svm_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h index c650165b4cf..e523da50db6 100644 --- a/src/svm/svm_common.h +++ b/src/svm/svm_common.h @@ -118,7 +118,9 @@ int svm_region_init_chroot (const char *root_path); void svm_region_init_chroot_uid_gid (const char *root_path, int uid, int gid); void svm_region_init_args (svm_map_region_args_t * a); void svm_region_exit (void); +void svm_region_exit_client (void); void svm_region_unmap (void *rp_arg); +void svm_region_unmap_client (void *rp_arg); void svm_client_scan (const char *root_path); void svm_client_scan_this_region_nolock (svm_region_t * rp); u8 *shm_name_from_svm_map_region_args (svm_map_region_args_t * a); |