diff options
author | 2022-10-12 22:58:01 +0200 | |
---|---|---|
committer | 2022-10-27 15:06:27 +0000 | |
commit | 0db15758ed63db434621fef0777e0dd2062ed326 (patch) | |
tree | b45cd748fb47148eb5442a2f50c31a9b78f695f2 /src/vcl/vcl_sapi.c | |
parent | d810a6e218e9af3c3bccd58c9a2d925a7f12242e (diff) |
vcl: register workers when reattaching to vpp
Type: improvement
Signed-off-by: Maros Ondrejicka <maros.ondrejicka@pantheon.tech>
Change-Id: I82a286e2872338974c1930138c30db78103ae499
Diffstat (limited to 'src/vcl/vcl_sapi.c')
-rw-r--r-- | src/vcl/vcl_sapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vcl/vcl_sapi.c b/src/vcl/vcl_sapi.c index 7d677e9dc1a..3a97fa25c0a 100644 --- a/src/vcl/vcl_sapi.c +++ b/src/vcl/vcl_sapi.c @@ -59,6 +59,8 @@ vcl_api_attach_reply_handler (app_sapi_attach_reply_msg_t * mp, int *fds) } wrk->api_client_handle = mp->api_client_handle; + /* reattaching via `vcl_api_retry_attach` wants wrk->vpp_wrk_index to be 0 */ + wrk->vpp_wrk_index = 0; segment_handle = mp->segment_handle; if (segment_handle == VCL_INVALID_SEGMENT_HANDLE) { |