diff options
author | Florin Coras <fcoras@cisco.com> | 2018-09-11 00:10:41 -0700 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-09-12 09:13:16 +0000 |
commit | 41c9e04be0ca3a081926045e78dc969dab563532 (patch) | |
tree | 2b0e666792415ebd8fc3fed5847652321231e4a8 /src/svm/message_queue.c | |
parent | ffb14b9554afa1e58c3657e0c91dda3135008274 (diff) |
vcl: improve read and fifo event handling
Change-Id: Ic1c51818b8aa8dbd164e70bb3b7471868e5af6f6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm/message_queue.c')
-rw-r--r-- | src/svm/message_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svm/message_queue.c b/src/svm/message_queue.c index d6a77e783e3..a73a56d8044 100644 --- a/src/svm/message_queue.c +++ b/src/svm/message_queue.c @@ -173,8 +173,7 @@ svm_msg_q_free_msg (svm_msg_q_t * mq, svm_msg_q_msg_t * msg) { svm_msg_q_ring_t *ring; - if (vec_len (mq->rings) <= msg->ring_index) - return; + ASSERT (vec_len (mq->rings) > msg->ring_index); ring = &mq->rings[msg->ring_index]; if (msg->elt_index == ring->head) { @@ -182,6 +181,7 @@ svm_msg_q_free_msg (svm_msg_q_t * mq, svm_msg_q_msg_t * msg) } else { + clib_warning ("message out of order"); /* for now, expect messages to be processed in order */ ASSERT (0); } |