session: re-set tx fifo event if out of buffers

Type: fix

Change-Id: I7416e827fbc5c63d082273656441c81dd6246d8a
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit aa43914df656bbd7340b8dbd68f23f8fe0aabfd5)
This commit is contained in:
Florin Coras
2019-11-08 15:32:05 -08:00
committed by Andrew Yourtchenko
parent 8427de5ab1
commit c58ef62713

View File

@ -899,6 +899,7 @@ session_tx_fifo_read_and_snd_i (session_worker_t * wrk,
{ {
if (n_bufs) if (n_bufs)
vlib_buffer_free (vm, wrk->tx_buffers, n_bufs); vlib_buffer_free (vm, wrk->tx_buffers, n_bufs);
if (svm_fifo_set_event (ctx->s->tx_fifo))
session_evt_add_head_old (wrk, elt); session_evt_add_head_old (wrk, elt);
vlib_node_increment_counter (wrk->vm, node->node_index, vlib_node_increment_counter (wrk->vm, node->node_index,
SESSION_QUEUE_ERROR_NO_BUFFER, 1); SESSION_QUEUE_ERROR_NO_BUFFER, 1);