session: allow rx events independnt of state 70/26270/2
authorFlorin Coras <fcoras@cisco.com>
Wed, 1 Apr 2020 04:05:41 +0000 (04:05 +0000)
committerDave Barach <openvpp@barachs.net>
Wed, 1 Apr 2020 19:21:25 +0000 (19:21 +0000)
Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ica1d4e149f4750517e0bd3ccf2572f6f15f63622

src/vnet/session/application_worker.c

index 88ea701..142b662 100644 (file)
@@ -585,12 +585,6 @@ app_send_io_evt_rx (app_worker_t * app_wrk, session_t * s)
   if (app_worker_application_is_builtin (app_wrk))
     return app_worker_builtin_rx (app_wrk, s);
 
-  /* Make sure the session is in established state within external apps.
-   * Should be removed once we confirm closes to apps */
-  if (PREDICT_FALSE (s->session_state != SESSION_STATE_READY
-                    && s->session_state != SESSION_STATE_LISTENING))
-    return 0;
-
   if (svm_fifo_has_event (s->rx_fifo))
     return 0;