summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-10-06 15:43:36 +0000
committerBeno�t Ganne <bganne@cisco.com>2022-10-06 16:56:48 +0000
commit6b8874eb2d47cc46b9c1e0ddd7c95b136625c7c1 (patch)
tree7fb0bd487ed979c7f4ad454f45b651a15d6ce34d /src/vnet
parent82ec908acbab63af64b1b912babcab9a16d9f0e6 (diff)
gso: fix the checksum for odd number of data bytes
Type: fix Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I07b694323e0f6745dec2b846785026b152d78af6
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/gso/gso.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/gso/gso.h b/src/vnet/gso/gso.h
index 041fab3bcc4..883a4941ee2 100644
--- a/src/vnet/gso/gso.h
+++ b/src/vnet/gso/gso.h
@@ -119,6 +119,7 @@ gso_fixup_segmented_buf (vlib_main_t *vm, vlib_buffer_t *b0, u32 next_tcp_seq,
tcp->flags = tcp_flags;
tcp->seq_number = clib_host_to_net_u32 (next_tcp_seq);
+ c->odd = 0;
if (is_ip6)
{