session: fix duplicate rx events 71/39671/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 12 Oct 2023 19:39:15 +0000 (12:39 -0700)
committerDave Barach <vpp@barachs.net>
Thu, 12 Oct 2023 23:21:31 +0000 (23:21 +0000)
Be less aggressive with rx events on connect/accept notification.

Type: fix

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

src/vnet/session/session_input.c

index efc4f54..42d7181 100644 (file)
@@ -158,11 +158,6 @@ app_worker_flush_events_inline (app_worker_t *app_wrk, u32 thread_index,
            }
          if (is_builtin)
            {
-             if (s->flags & SESSION_F_RX_EVT)
-               {
-                 s->flags &= ~SESSION_F_RX_EVT;
-                 app->cb_fns.builtin_app_rx_callback (s);
-               }
              if (old_state >= SESSION_STATE_TRANSPORT_CLOSING)
                {
                  session_set_state (s, old_state);
@@ -189,11 +184,6 @@ app_worker_flush_events_inline (app_worker_t *app_wrk, u32 thread_index,
              s->app_wrk_index = SESSION_INVALID_INDEX;
              break;
            }
-         if (s->flags & SESSION_F_RX_EVT)
-           {
-             s->flags &= ~SESSION_F_RX_EVT;
-             app->cb_fns.builtin_app_rx_callback (s);
-           }
          if (old_state >= SESSION_STATE_TRANSPORT_CLOSING)
            {
              session_set_state (s, old_state);