vcl: set deq notify flag on epoll connected sessions 20/37920/4
authorFlorin Coras <fcoras@cisco.com>
Fri, 13 Jan 2023 17:44:14 +0000 (09:44 -0800)
committerDave Barach <vpp@barachs.net>
Fri, 13 Jan 2023 20:23:00 +0000 (20:23 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I021f8e8bba247b0050d390a37dbc75900dc6a598

src/vcl/vppcom.c

index 5735596..3b265d2 100644 (file)
@@ -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;