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 5c89fbf286
)
This commit is contained in:

committed by
Andrew Yourtchenko

parent
61b1d46db0
commit
b462d94038
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user