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
committed by
Andrew Yourtchenko
parent
8427de5ab1
commit
c58ef62713
@ -899,7 +899,8 @@ session_tx_fifo_read_and_snd_i (session_worker_t * wrk,
|
||||
{
|
||||
if (n_bufs)
|
||||
vlib_buffer_free (vm, wrk->tx_buffers, n_bufs);
|
||||
session_evt_add_head_old (wrk, elt);
|
||||
if (svm_fifo_set_event (ctx->s->tx_fifo))
|
||||
session_evt_add_head_old (wrk, elt);
|
||||
vlib_node_increment_counter (wrk->vm, node->node_index,
|
||||
SESSION_QUEUE_ERROR_NO_BUFFER, 1);
|
||||
return SESSION_TX_NO_BUFFERS;
|
||||
|
Reference in New Issue
Block a user