diff options
author | Vladimir Kropylev <vladimir.kropylev@enea.com> | 2019-08-30 13:04:06 +0300 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-09-28 20:21:22 +0000 |
commit | b462d94038143791f47b7159fcd76ee17a1b5cb8 (patch) | |
tree | 66fa3d5e410df15b0ac4458d69feaf5e5ea9411d | |
parent | 61b1d46db0068a35c1ac51b93019dbe8122129ac (diff) |
session: move svm_fifo_clear_deq_ntf to before calling the app callback
Type: fix
in case the app requests another dequeue notification, it should not be cleared
Change-Id: I7e94e8e30ef098f87f5e7f4880af276970ee5b37
Signed-off-by: Vladimir Kropylev <vladimir.kropylev@enea.com>
(cherry picked from commit 5c89fbf28665d13a0052fc88288c1524e0e93918)
-rw-r--r-- | src/vnet/session/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index c0452cad1bd..62594cb6bf9 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -604,6 +604,8 @@ session_dequeue_notify (session_t * s) { app_worker_t *app_wrk; + svm_fifo_clear_deq_ntf (s->tx_fifo); + app_wrk = app_worker_get_if_valid (s->app_wrk_index); if (PREDICT_FALSE (!app_wrk)) return -1; @@ -616,8 +618,6 @@ session_dequeue_notify (session_t * s) return session_notify_subscribers (app_wrk->app_index, s, s->tx_fifo, SESSION_IO_EVT_TX); - svm_fifo_clear_deq_ntf (s->tx_fifo); - return 0; } |