diff options
author | Florin Coras <fcoras@cisco.com> | 2019-05-07 16:28:16 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-05-08 21:15:38 +0000 |
commit | 0e573f56dc4986b2f21ffedddb1c5a2424f88b0d (patch) | |
tree | 6469c3c3059ce6b55cd0c5f35557dbdaa68cba75 /src/vnet/session/session.c | |
parent | 1538824a30ab3bb4d651e34ebf077c6958aeb259 (diff) |
session: send tx events when data is dequeued
Change-Id: Ib8cb19361c42e38e3f68d7147358378fff161eb1
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 75f7baf7318..1a304a6f80e 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -452,6 +452,10 @@ u32 session_tx_fifo_dequeue_drop (transport_connection_t * tc, u32 max_bytes) { session_t *s = session_get (tc->s_index, tc->thread_index); + + 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); } |