diff options
author | Vladimir Kropylev <vladimir.kropylev@enea.com> | 2019-08-30 13:04:06 +0300 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-08-30 14:23:22 +0000 |
commit | 5c89fbf28665d13a0052fc88288c1524e0e93918 (patch) | |
tree | 0f036405a443b38e9eb492cfc4f5a0d023424600 /src/vnet/session | |
parent | 2985e0af6b48c7a5b57e442ead21b3620686b052 (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>
Diffstat (limited to 'src/vnet/session')
-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 a27e80ea336..1010f0525ba 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; } |