From acecd0d9c225d5f87f2a518854c7eb7af319ef96 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 5 Jun 2023 10:24:56 -0700 Subject: vcl: avoid duplicate tx events with epoll lt Type: fix Signed-off-by: Florin Coras Change-Id: Ic6436426ead561e47fb77ed9a95afbd85f2998ae --- src/vcl/vppcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vcl') 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; -- cgit 1.2.3-korg