aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-02 10:17:48 -0700
committerDave Barach <openvpp@barachs.net>2019-04-02 21:13:07 +0000
commit096f2f83f62bc7eea269d651172ec27b2ec3522f (patch)
tree3f35b9907a96a65997394689a645c0b42c4d0867 /src/vnet/session
parent69b68ef1a98ab45becb585f8906acc19b9665e6d (diff)
session: remove session logic from io rx evt sender
Change-Id: I54fff6986ea6455aff25e0cf1b83117860859e10 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application_worker.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c
index 6f504dafa43..a8edad3edbb 100644
--- a/src/vnet/session/application_worker.c
+++ b/src/vnet/session/application_worker.c
@@ -553,12 +553,7 @@ app_send_io_evt_rx (app_worker_t * app_wrk, session_t * s, u8 lock)
if (PREDICT_FALSE (s->session_state != SESSION_STATE_READY
&& s->session_state != SESSION_STATE_LISTENING))
- {
- /* Session is closed so app will never clean up. Flush rx fifo */
- if (s->session_state == SESSION_STATE_CLOSED)
- svm_fifo_dequeue_drop_all (s->rx_fifo);
- return 0;
- }
+ return 0;
if (app_worker_application_is_builtin (app_wrk))
return app_worker_builtin_rx (app_wrk, s);