aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-09-01 17:19:33 -0700
committerDave Barach <vpp@barachs.net>2023-09-04 18:33:41 +0000
commit931a32876a391d0f17ac4eefb145790c0521854d (patch)
treec8e48af85874fda9ef779f12d6b59c7f5d2abce1 /src/vnet/udp
parent8af78b8e360f12ffb9e347868a6e820bee618b81 (diff)
udp: buffer packets for connections in accepting state
Type: fix Fixes: 0242d30 Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I6e313000bccce749b813f20a52432154bfd494ed
Diffstat (limited to 'src/vnet/udp')
-rw-r--r--src/vnet/udp/udp_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index 33ee2cddefd..66f6229efa6 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -284,7 +284,8 @@ udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
udp_connection_enqueue (uc0, s0, &hdr0, thread_index, b[0],
queue_event, &error0);
}
- else if (s0->session_state == SESSION_STATE_READY)
+ else if (s0->session_state == SESSION_STATE_READY ||
+ s0->session_state == SESSION_STATE_ACCEPTING)
{
uc0 = udp_connection_from_transport (session_get_transport (s0));
udp_connection_enqueue (uc0, s0, &hdr0, thread_index, b[0], 1,