summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 4b3ce016be5..8aa4af935e9 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -453,11 +453,14 @@ u32
session_tx_fifo_dequeue_drop (transport_connection_t * tc, u32 max_bytes)
{
session_t *s = session_get (tc->s_index, tc->thread_index);
+ u32 rv;
+
+ rv = svm_fifo_dequeue_drop (s->tx_fifo, max_bytes);
if (svm_fifo_needs_tx_ntf (s->tx_fifo, max_bytes))
session_dequeue_notify (s);
- return svm_fifo_dequeue_drop (s->tx_fifo, max_bytes);
+ return rv;
}
static inline int