diff options
author | Florin Coras <fcoras@cisco.com> | 2024-11-26 00:29:24 -0800 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-11-28 21:58:56 +0000 |
commit | 978d48b7656a0b2dd53a032c37681c5e7d66ba90 (patch) | |
tree | 3196b72ce43f35318ff4dcec8462a8d5a5c322bd /src/vcl/vcl_locked.h | |
parent | 3628353e093752f34704a82ae85a27d8f951e05e (diff) |
vcl: store libc_epfd in vls instead of vcl
ldp stores the libc epfds it uses in conjunction with vcl epfds in vcl
attributes. Apart from being an ldp, as opposed to vcl, specific
attribute, the epfd is retrieved on session close with vls locks that
could be acquired from multiple threads.
Avoid grabbing locks when retrieving the attribute.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I5fc52d72667a7693b1557d209c3890a968422f1e
Diffstat (limited to 'src/vcl/vcl_locked.h')
-rw-r--r-- | src/vcl/vcl_locked.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vcl/vcl_locked.h b/src/vcl/vcl_locked.h index 3d04a36d5c3..bc131402cc9 100644 --- a/src/vcl/vcl_locked.h +++ b/src/vcl/vcl_locked.h @@ -56,6 +56,8 @@ int vls_app_create (char *app_name); unsigned char vls_use_eventfd (void); unsigned char vls_mt_wrk_supported (void); int vls_use_real_epoll (void); +int vls_set_libc_epfd (vls_handle_t ep_vlsh, int libc_epfd); +int vls_get_libc_epfd (vls_handle_t ep_vlsh); void vls_register_vcl_worker (void); #endif /* SRC_VCL_VCL_LOCKED_H_ */ |