vcl: avoid duplicate tx events with epoll lt
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic6436426ead561e47fb77ed9a95afbd85f2998ae
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 9e7af0a..474670e 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -3058,7 +3058,8 @@
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;