summaryrefslogtreecommitdiffstats
path: root/src/vnet/gso/gso.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-03-25 20:37:16 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-03-30 11:39:22 +0000
commit0937fdfa86ce61c54f37d142aabae45463a959e5 (patch)
tree2aacbc36145319c9fac0ffe7dafd8d74b7e43b2b /src/vnet/gso/gso.h
parent7654a718669f0dc950344c049186b9452bf48ca9 (diff)
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 <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/gso/gso.h')
-rw-r--r--src/vnet/gso/gso.h2
1 files changed, 0 insertions, 2 deletions
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))