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
@@ -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;
}
