diff options
author | 2024-10-23 14:19:31 -0700 | |
---|---|---|
committer | 2024-11-01 20:22:05 +0000 | |
commit | ce4635c4a79543654e8825614138f1d58b6d785c (patch) | |
tree | 6ca7f7bdf5d12c219c5133609292597378d84660 /src/vcl/vcl_locked.h | |
parent | bd32d6234cad2af5bc220c6976aa84a758131427 (diff) |
vcl: fix vls mt detection and select handling
Make sure num threads is 1 on process create and fork. Multi-thread
locks are applied once num threads exceeds 1.
For select, follow same pattern like epoll and add check for session
migration.
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: I1edcd6c4c81b6b3caf8b00781b339414e8945b0e
Diffstat (limited to 'src/vcl/vcl_locked.h')
-rw-r--r-- | src/vcl/vcl_locked.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vcl/vcl_locked.h b/src/vcl/vcl_locked.h index fa3a2735eb7..3d04a36d5c3 100644 --- a/src/vcl/vcl_locked.h +++ b/src/vcl/vcl_locked.h @@ -50,6 +50,7 @@ int vls_select (int n_bits, vcl_si_set * read_map, vcl_si_set * write_map, vcl_si_set * except_map, double wait_for_time); vcl_session_handle_t vlsh_to_sh (vls_handle_t vlsh); vcl_session_handle_t vlsh_to_session_index (vls_handle_t vlsh); +int vlsh_to_worker_index (vls_handle_t vlsh); vls_handle_t vls_session_index_to_vlsh (uint32_t session_index); int vls_app_create (char *app_name); unsigned char vls_use_eventfd (void); |