From: Florin Coras Date: Sat, 31 May 2025 21:13:44 +0000 (-0400) Subject: vcl: improve select handling of vpp detachment X-Git-Tag: v26.02-rc0~295 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e82ba2f5ef80d43f3b154bd555ffe44bc2b9311d;p=vpp.git vcl: improve select handling of vpp detachment Type: improvement Change-Id: I85df1da32e3d9a06051175385a75818d8ec5b29d Signed-off-by: Florin Coras --- diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 6f84178de79..35af7f73046 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -2813,8 +2813,13 @@ vppcom_select_eventfd (vcl_worker_t * wrk, int n_bits, for (i = 0; i < n_mq_evts; i++) { - if (PREDICT_FALSE (wrk->mq_events[i].data.u32 == ~0)) + if (PREDICT_FALSE (wrk->mq_events[i].data.u32 >= VCL_EP_PIPEFD_EVT)) { + if (wrk->mq_events[i].data.u32 == VCL_EP_PIPEFD_EVT) + { + vcl_api_retry_attach (wrk); + continue; + } vcl_api_handle_disconnect (wrk); continue; }