summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-01-09 14:00:33 -0800
committerDave Barach <vpp@barachs.net>2023-01-10 02:47:58 +0000
commit6d39c1e07ee681d1c36a968b11269cb2ecca7edc (patch)
tree5dca7aba89993a2239c1240b4791b5491e0e9cd4
parent993c86f339fca3e382e65fc82627381255aaacec (diff)
udp: initialize gso_size on dgram enqueue
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I1b5a35b9d53cc56d4d8050de70f40b95e92f1011
-rw-r--r--src/vnet/udp/udp_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index cd709390940..d5dd159c4b2 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -185,6 +185,7 @@ udp_parse_and_lookup_buffer (vlib_buffer_t * b, session_dgram_hdr_t * hdr,
hdr->lcl_port = udp->dst_port;
hdr->rmt_port = udp->src_port;
hdr->is_ip4 = is_ip4;
+ hdr->gso_size = 0;
if (is_ip4)
{