session: fix session reschedule condition 02/25702/2
authorFlorin Coras <fcoras@cisco.com>
Fri, 6 Mar 2020 02:25:09 +0000 (02:25 +0000)
committerDave Barach <openvpp@barachs.net>
Fri, 6 Mar 2020 15:09:40 +0000 (15:09 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I01441e958517e31260e67c8caea5f75d684b2711

src/vnet/session/session_node.c

index 5f76578..ad24f42 100644 (file)
@@ -822,7 +822,7 @@ session_tx_maybe_reschedule (session_worker_t * wrk,
   session_t *s = ctx->s;
 
   svm_fifo_unset_event (s->tx_fifo);
-  if (svm_fifo_max_dequeue_cons (s->tx_fifo) > is_peek ? ctx->tx_offset : 0)
+  if (svm_fifo_max_dequeue_cons (s->tx_fifo) > (is_peek ? ctx->tx_offset : 0))
     if (svm_fifo_set_event (s->tx_fifo))
       session_evt_add_head_old (wrk, elt);
 }