session: fix tx deq ntf assert for cl 33/39633/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 10 Oct 2023 17:21:01 +0000 (10:21 -0700)
committerDave Barach <vpp@barachs.net>
Wed, 11 Oct 2023 19:23:26 +0000 (19:23 +0000)
Type: fix

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

src/vnet/session/session.c

index 23c58ef..67652b5 100644 (file)
@@ -596,7 +596,7 @@ session_program_io_event (app_worker_t *app_wrk, session_t *s,
       /* Special events for connectionless sessions */
       et += SESSION_IO_EVT_BUILTIN_RX - SESSION_IO_EVT_RX;
 
-      ASSERT (s->thread_index == 0);
+      ASSERT (s->thread_index == 0 || et == SESSION_IO_EVT_TX_MAIN);
       session_event_t evt = {
        .event_type = et,
        .session_handle = session_handle (s),