Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vcl: register workers when reattaching to vpp
[vpp.git]
/
src
/
vcl
/
vcl_sapi.c
diff --git
a/src/vcl/vcl_sapi.c
b/src/vcl/vcl_sapi.c
index
7d677e9
..
3a97fa2
100644
(file)
--- 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)
{