summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-09-10 11:37:12 -0700
committerFlorin Coras <fcoras@cisco.com>2021-09-10 11:37:12 -0700
commit8cc9321f38c041bc9359bf0aae00091b4985c5cb (patch)
tree1713761f3eb5339d4268d2f9e305b43491402677
parent10bb21fb13aa74dcb0c2c0841d41a698bb274fbe (diff)
vcl: fix free segments assert
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I837820fd1759cab55f42c54950e991a215234737
-rw-r--r--src/vcl/vppcom.c2
1 files changed, 1 insertions, 1 deletions
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;
}