vcl: improve select handling of vpp detachment 60/43060/3
authorFlorin Coras <[email protected]>
Sat, 31 May 2025 21:13:44 +0000 (17:13 -0400)
committerDave Barach <[email protected]>
Sun, 1 Jun 2025 19:40:31 +0000 (19:40 +0000)
Type: improvement

Change-Id: I85df1da32e3d9a06051175385a75818d8ec5b29d
Signed-off-by: Florin Coras <[email protected]>
src/vcl/vppcom.c

index 6f84178..35af7f7 100644 (file)
@@ -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;
            }