summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4.h
diff options
context:
space:
mode:
authorSimon Zhang <yuwei1.zhang@intel.com>2019-09-02 22:54:00 +0800
committerFlorin Coras <florin.coras@gmail.com>2019-09-10 20:02:55 +0000
commit1146ff4bcd336d8efc19405f1d83914e6115a01f (patch)
tree314970d121e92fce05e1d122ddeeb5fccd9439a6 /src/vnet/ip/ip4.h
parentb97641c79f4aaf0069268c550f263167ddea2b34 (diff)
tcp: enable gso in tcp hoststack
Type: feature Change-Id: If68d07fbe8c6f7fffd2f93c7e854367082927e4f Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
Diffstat (limited to 'src/vnet/ip/ip4.h')
-rw-r--r--src/vnet/ip/ip4.h2
1 files changed, 2 insertions, 0 deletions
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);