diff options
author | Florin Coras <fcoras@cisco.com> | 2023-01-13 09:44:14 -0800 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2023-01-13 20:23:00 +0000 |
commit | 1d84abc93ed0f41ee7ced184e57ab9b6241c6eba (patch) | |
tree | 1e29d8838fe63c933da0d2baf3e5da0c2ac2951c /src/vcl/vppcom.c | |
parent | 8851ccfe4aac8d021e2a813a8a25c13b3ae61853 (diff) |
vcl: set deq notify flag on epoll connected sessions
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I021f8e8bba247b0050d390a37dbc75900dc6a598
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r-- | src/vcl/vppcom.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |