From: Florin Coras Date: Mon, 5 Jun 2023 17:24:56 +0000 (-0700) Subject: vcl: avoid duplicate tx events with epoll lt X-Git-Tag: v24.02-rc0~190 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=acecd0d9c225d5f87f2a518854c7eb7af319ef96;p=vpp.git vcl: avoid duplicate tx events with epoll lt Type: fix Signed-off-by: Florin Coras Change-Id: Ic6436426ead561e47fb77ed9a95afbd85f2998ae --- diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 9e7af0a3a50..474670e7565 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -3058,7 +3058,8 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e, 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)) + if (!(EPOLLOUT & session_events) || + (s->vep.lt_next != VCL_INVALID_SESSION_INDEX)) break; add_event = 1; events[*num_ev].events = EPOLLOUT;