From 1d84abc93ed0f41ee7ced184e57ab9b6241c6eba Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 13 Jan 2023 09:44:14 -0800 Subject: [PATCH] vcl: set deq notify flag on epoll connected sessions Type: fix Signed-off-by: Florin Coras Change-Id: I021f8e8bba247b0050d390a37dbc75900dc6a598 --- src/vcl/vppcom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 57355967900..3b265d29ab8 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -3098,6 +3098,10 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e, /* Generate EPOLLOUT because there's no connected event */ if (!(EPOLLOUT & session_events)) break; + /* We didn't have a fifo when the event was added */ + svm_fifo_add_want_deq_ntf ( + (vcl_session_is_ct (s) ? s->ct_tx_fifo : s->tx_fifo), + SVM_FIFO_WANT_DEQ_NOTIF_IF_FULL); add_event = 1; events[*num_ev].events = EPOLLOUT; session_evt_data = s->vep.ev.data.u64; -- 2.16.6