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/application_worker.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/application_worker.c')
-rw-r--r-- | src/vnet/session/application_worker.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index d98c437ec84..081dbbecdac 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -344,6 +344,18 @@ app_worker_builtin_rx (app_worker_t * app_wrk, session_t * s) } int +app_worker_builtin_tx (app_worker_t * app_wrk, session_t * s) +{ + application_t *app = application_get (app_wrk->app_index); + + if (!app->cb_fns.builtin_app_tx_callback) + return 0; + + app->cb_fns.builtin_app_tx_callback (s); + return 0; +} + +int app_worker_own_session (app_worker_t * app_wrk, session_t * s) { segment_manager_t *sm; @@ -583,7 +595,7 @@ app_send_io_evt_tx (app_worker_t * app_wrk, session_t * s, u8 lock) svm_msg_q_msg_t msg; if (app_worker_application_is_builtin (app_wrk)) - return 0; + return app_worker_builtin_tx (app_wrk, s); mq = app_wrk->event_queue; if (lock) |