From 4817855115f2dab37cad85fa8bf8ba51b3871235 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 17 May 2023 22:59:40 -0700 Subject: vcl: always reset deq ntf flag in epoll evt handler Reset deq notification flag even if session is no longer epolled. Type: fix Signed-off-by: Florin Coras Change-Id: I4e9aed1849aa2817176f3a54ae41910df5e704a0 --- src/vcl/vppcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 360b65df9d2..43f6b741d0c 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -3068,14 +3068,14 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e, s = vcl_session_get (wrk, sid); if (!s || !vcl_session_is_open (s)) break; + svm_fifo_reset_has_deq_ntf (vcl_session_is_ct (s) ? s->ct_tx_fifo : + s->tx_fifo); session_events = s->vep.ev.events; if (!(EPOLLOUT & session_events)) break; add_event = 1; events[*num_ev].events = EPOLLOUT; session_evt_data = s->vep.ev.data.u64; - svm_fifo_reset_has_deq_ntf (vcl_session_is_ct (s) ? - s->ct_tx_fifo : s->tx_fifo); break; case SESSION_CTRL_EVT_ACCEPTED: if (!e->postponed) -- cgit 1.2.3-korg