From 6f3621d772d0dafa745081b32a8769b4c42af059 Mon Sep 17 00:00:00 2001 From: Simon Zhang Date: Mon, 2 Sep 2019 22:54:00 +0800 Subject: tcp: enable gso in tcp hoststack Type: feature Change-Id: If68d07fbe8c6f7fffd2f93c7e854367082927e4f Signed-off-by: Simon Zhang (cherry picked from commit 1146ff4bcd336d8efc19405f1d83914e6115a01f) --- src/vnet/ip/ip4.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/ip') diff --git a/src/vnet/ip/ip4.h b/src/vnet/ip/ip4.h index 0ead3faa1b8..9da5926e13f 100644 --- a/src/vnet/ip/ip4.h +++ b/src/vnet/ip/ip4.h @@ -412,6 +412,8 @@ vlib_buffer_push_ip4 (vlib_main_t * vm, vlib_buffer_t * b, vnet_buffer (b)->l3_hdr_offset = (u8 *) ih - b->data; vnet_buffer (b)->l4_hdr_offset = vnet_buffer (b)->l3_hdr_offset + sizeof (*ih); + b->flags |= + VNET_BUFFER_F_L3_HDR_OFFSET_VALID | VNET_BUFFER_F_L4_HDR_OFFSET_VALID; } else ih->checksum = ip4_header_checksum (ih); -- cgit 1.2.3-korg