diff options
author | Florin Coras <fcoras@cisco.com> | 2024-05-10 20:28:12 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2024-12-02 21:11:38 -0800 |
commit | 63b34c8d2208d17fe7741df71ac178f47b17923d (patch) | |
tree | a59d753403f638a076d9c7ddae59a5845b5af6d9 /src/vcl/vcl_locked.c | |
parent | 6b224de844539bde50913575305cddda09f3b2a6 (diff) |
vcl: fix poll support
Type: fix
Change-Id: I827f19d893153277baba3c2d0efde5f2827eb0ff
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_locked.c')
-rw-r--r-- | src/vcl/vcl_locked.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vcl/vcl_locked.c b/src/vcl/vcl_locked.c index 9f3d6b56c2e..bae1c0d86b3 100644 --- a/src/vcl/vcl_locked.c +++ b/src/vcl/vcl_locked.c @@ -1626,6 +1626,20 @@ vls_select (int n_bits, vcl_si_set * read_map, vcl_si_set * write_map, return rv; } +int +vls_poll (vcl_poll_t *vp, uint32_t n_sids, double wait_for_time) +{ + int rv; + vcl_locked_session_t *vls = NULL; + + vls_mt_detect (); + vls_mt_guard (vls, VLS_MT_OP_XPOLL); + rv = vppcom_poll (vp, n_sids, wait_for_time); + vls_mt_unguard (); + vls_handle_pending_wrk_cleanup (); + return rv; +} + static void vls_unshare_vcl_worker_sessions (vcl_worker_t * wrk) { |