gso: fix the checksum for odd number of data bytes 64/37364/2
authorMohsin Kazmi <sykazmi@cisco.com>
Thu, 6 Oct 2022 15:43:36 +0000 (15:43 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Thu, 6 Oct 2022 16:56:48 +0000 (16:56 +0000)
Type: fix

Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I07b694323e0f6745dec2b846785026b152d78af6

src/vnet/gso/gso.h

index 041fab3..883a494 100644 (file)
@@ -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)
     {