aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-11-16 12:45:43 -0800
committerDamjan Marion <dmarion@me.com>2021-11-17 14:46:34 +0000
commit0200044387b3ee0cb700d9f605cc7e7960bef287 (patch)
treea4340884cda60262d51034c1e03a059de7944832 /src/vnet/udp
parentc215e5a317980447fed3ca0df1895e261769c219 (diff)
session: support close during migration
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ife1e046b62bb0679419fd1346e973d0e3ea55489
Diffstat (limited to 'src/vnet/udp')
-rw-r--r--src/vnet/udp/udp.c2
1 files changed, 1 insertions, 1 deletions
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))