summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-28 17:12:32 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-27 09:36:42 +0000
commit154e4a6cb75df40093540e60ecea8352ca00e479 (patch)
tree21a37c1ab02e70ebb14673cf5ba767746e06d48c /src/vnet
parent997f95e11a23c7d90a1d29464841a7ad6a413a6c (diff)
svm: fix fifo hdr freelist allocation
Type: fix Change-Id: Ia362ad821db1fd506e973e1844cc3ec74703cc17 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit 73cad33b56ffc08943e9c0d73ecb14466558baae)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 45292454e57..c0452cad1bd 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -63,6 +63,7 @@ session_send_evt_to_thread (void *data, void *args, u32 thread_index,
break;
case SESSION_IO_EVT_BUILTIN_TX:
case SESSION_CTRL_EVT_CLOSE:
+ case SESSION_CTRL_EVT_RESET:
evt->session_handle = session_handle ((session_t *) data);
break;
default:
@@ -125,6 +126,7 @@ session_add_self_custom_tx_evt (transport_connection_t * tc, u8 has_prio)
s = session_get (tc->s_index, tc->thread_index);
ASSERT (s->thread_index == vlib_get_thread_index ());
+ ASSERT (s->session_state < SESSION_STATE_TRANSPORT_DELETED);
if (!(s->flags & SESSION_F_CUSTOM_TX))
{
s->flags |= SESSION_F_CUSTOM_TX;