From 0200044387b3ee0cb700d9f605cc7e7960bef287 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 16 Nov 2021 12:45:43 -0800 Subject: session: support close during migration Type: improvement Signed-off-by: Florin Coras Change-Id: Ife1e046b62bb0679419fd1346e973d0e3ea55489 --- src/vnet/udp/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/udp') diff --git a/src/vnet/udp/udp.c b/src/vnet/udp/udp.c index b27f0d7b27c..260ea9b6287 100644 --- a/src/vnet/udp/udp.c +++ b/src/vnet/udp/udp.c @@ -281,7 +281,7 @@ udp_session_close (u32 connection_index, u32 thread_index) udp_connection_t *uc; uc = udp_connection_get (connection_index, thread_index); - if (!uc) + if (!uc || (uc->flags & UDP_CONN_F_MIGRATED)) return; if (!transport_max_tx_dequeue (&uc->connection)) -- cgit 1.2.3-korg