From 0937fdfa86ce61c54f37d142aabae45463a959e5 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Wed, 25 Mar 2020 20:37:16 +0000 Subject: gso: fix the header parser to read only Previously, header parser sets the tcp/udp checksum to 0. It should be read only function for vlib_buffer_t. Type: fix Change-Id: I9c3398372f22998da3df188f0b7db13748303068 Signed-off-by: Mohsin Kazmi --- src/vnet/gso/gso.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/vnet/gso/gso.h') diff --git a/src/vnet/gso/gso.h b/src/vnet/gso/gso.h index 79869c2644b..0e46c36f74d 100644 --- a/src/vnet/gso/gso.h +++ b/src/vnet/gso/gso.h @@ -106,14 +106,12 @@ vnet_gso_header_offset_parser (vlib_buffer_t * b0, int is_ip6) tcp_header_t *tcp = (tcp_header_t *) (vlib_buffer_get_current (b0) + gho.l4_hdr_offset); l4_hdr_sz = tcp_header_bytes (tcp); - tcp->checksum = 0; } else if (l4_proto == IP_PROTOCOL_UDP) { udp_header_t *udp = (udp_header_t *) (vlib_buffer_get_current (b0) + gho.l4_hdr_offset); l4_hdr_sz = sizeof (*udp); - udp->checksum = 0; } if (b0->flags & (VNET_BUFFER_F_IS_IP4 | VNET_BUFFER_F_IS_IP6)) -- cgit 1.2.3-korg