aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-03-06 02:25:09 +0000
committerDave Barach <openvpp@barachs.net>2020-03-06 15:09:40 +0000
commitd8da60d05c1669bfaf1f5c1a88b82673d816438c (patch)
tree1add69a552fa7b9d95cece50da96b77e16bbaf0b /src
parent243edd5ffe5cb62be5fe806a33026a7bdfca499f (diff)
session: fix session reschedule condition
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I01441e958517e31260e67c8caea5f75d684b2711
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session_node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c
index 5f765784d26..ad24f429fbc 100644
--- a/src/vnet/session/session_node.c
+++ b/src/vnet/session/session_node.c
@@ -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);
}