aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-06-10 08:08:53 -0700
committerFlorin Coras <florin.coras@gmail.com>2021-06-10 17:53:50 +0000
commit50797cda3ab32cab4ba6fa4e3735281d7cc6a532 (patch)
tree172708a8c954397d5f142ea5edcfa3b3003ce210 /src
parentd0f23a316404025f946317826b9234b8afcc93ac (diff)
vcl: touch fifo on epoll del only if session open
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0971c18a183319d09486459b0da08d44ce38acef (cherry picked from commit f1ddeeb15555e783a9cb0133d4f8eb9c40852ab5)
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vppcom.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 0c6f6e6bbfd..330d590cfa0 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -2878,9 +2878,12 @@ vppcom_epoll_ctl (uint32_t vep_handle, int op, uint32_t session_handle,
s->vep.vep_sh = ~0;
s->flags &= ~VCL_SESSION_F_IS_VEP_SESSION;
- txf = vcl_session_is_ct (s) ? s->ct_tx_fifo : s->tx_fifo;
- if (txf)
- svm_fifo_del_want_deq_ntf (txf, SVM_FIFO_WANT_DEQ_NOTIF_IF_FULL);
+ if (vcl_session_is_open (s))
+ {
+ txf = vcl_session_is_ct (s) ? s->ct_tx_fifo : s->tx_fifo;
+ if (txf)
+ svm_fifo_del_want_deq_ntf (txf, SVM_FIFO_WANT_DEQ_NOTIF_IF_FULL);
+ }
VDBG (1, "EPOLL_CTL_DEL: vep_idx %u, sh %u!", vep_handle,
session_handle);