aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-06-27 19:45:59 -0700
committerFlorin Coras <fcoras@cisco.com>2023-06-27 20:34:21 -0700
commitc8767c42aadb5bd63206e117673991ef799e2d18 (patch)
treebcf39620e408a8580aa11b4b38f80d1fd1aea4db /src/vnet/udp
parent31eaea9eef0594117e83733aa01f8bbda940e4da (diff)
session udp: add len check for tx dgrams
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I35391fb8c39defbe0e57a241a357c3c98e8cef54
Diffstat (limited to 'src/vnet/udp')
-rw-r--r--src/vnet/udp/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/udp/udp.c b/src/vnet/udp/udp.c
index b3c410a2330..a8e013001e8 100644
--- a/src/vnet/udp/udp.c
+++ b/src/vnet/udp/udp.c
@@ -317,7 +317,7 @@ udp_push_header (transport_connection_t *tc, vlib_buffer_t **bs, u32 n_bufs)
if (PREDICT_FALSE (uc->flags & UDP_CONN_F_CLOSING))
{
- if (!transport_max_tx_dequeue (&uc->connection))
+ if (!transport_tx_fifo_has_dgram (&uc->connection))
udp_connection_program_cleanup (uc);
}
@@ -343,7 +343,7 @@ udp_session_close (u32 connection_index, u32 thread_index)
if (!uc || (uc->flags & UDP_CONN_F_MIGRATED))
return;
- if (!transport_max_tx_dequeue (&uc->connection))
+ if (!transport_tx_fifo_has_dgram (&uc->connection))
udp_connection_program_cleanup (uc);
else
uc->flags |= UDP_CONN_F_CLOSING;