diff options
author | Florin Coras <fcoras@cisco.com> | 2018-08-28 11:32:04 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-08-30 21:01:45 +0000 |
commit | 134a996a0279577080b626d5172c1739efa00b92 (patch) | |
tree | 4e2bcc3c36ba5aa410622ac0de709f4ea8843e25 /src/vcl/vcl_event.c | |
parent | ac5554c960a8679f56b62effeec31671e04a13cb (diff) |
vcl: add support for multi-worker apps
Add basic support for app registration of multiple workers. LDP does not
work with multi-worker apps.
Change-Id: I3fc421a2a591a077b275827463f874b261415a63
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_event.c')
-rw-r--r-- | src/vcl/vcl_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcl/vcl_event.c b/src/vcl/vcl_event.c index f8da0156d1a..38a78535ee7 100644 --- a/src/vcl/vcl_event.c +++ b/src/vcl/vcl_event.c @@ -321,7 +321,7 @@ vppcom_session_io_thread_fn (void *arg) { for (i = 0; i < vec_len (session_indexes); ++i) { - session = vcl_session_get (session_indexes[i]); + session = vcl_session_get (0, session_indexes[i]); if (!session) return NULL; bytes = svm_fifo_max_dequeue (session->rx_fifo); @@ -411,7 +411,7 @@ vce_registered_listener_connect_handler_fn (void *arg) ev = vce_get_event_from_index (&vcm->event_thread, reg->ev_idx); ecr = vce_get_event_data (ev, sizeof (*ecr)); VCL_EVENTS_UNLOCK (); - new_session = vcl_session_get (ecr->accepted_session_index); + new_session = vcl_session_get (0, ecr->accepted_session_index); if (!new_session) return; |