From 8cc9321f38c041bc9359bf0aae00091b4985c5cb Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 10 Sep 2021 11:37:12 -0700 Subject: vcl: fix free segments assert Type: fix Signed-off-by: Florin Coras Change-Id: I837820fd1759cab55f42c54950e991a215234737 --- src/vcl/vppcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 20823945f8c..86a0c642bfc 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -2196,7 +2196,7 @@ vppcom_session_free_segments (uint32_t session_handle, uint32_t n_bytes) is_ct = vcl_session_is_ct (s); svm_fifo_dequeue_drop (is_ct ? s->ct_rx_fifo : s->rx_fifo, n_bytes); - ASSERT (s->rx_bytes_pending < n_bytes); + ASSERT (s->rx_bytes_pending >= n_bytes); s->rx_bytes_pending -= n_bytes; } -- cgit 1.2.3-korg