diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2020-05-12 13:42:58 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-05-20 11:24:33 +0000 |
commit | 1140266af1aad6f87fee4fca918a7482d5dc02ba (patch) | |
tree | d3b58856cb922f011518fa9be5af1e4acb858416 /src/vnet/gso/gso.h | |
parent | aefcd1a3579ec2c93f606b151d563d87ea211387 (diff) |
gso: fix the gso segmentation
Type: fix
This fix is backported from master partial of patch:
gso: add vxlan tunnel support
It fixes required number of buffers for segmentation and
also enables gso infra node on sub-interfaces.
Change-Id: I2cf93cdb39c67e2252a3549905d141fffa95d249
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/gso/gso.h')
-rw-r--r-- | src/vnet/gso/gso.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/vnet/gso/gso.h b/src/vnet/gso/gso.h index 79869c2644b..27d4bc765a9 100644 --- a/src/vnet/gso/gso.h +++ b/src/vnet/gso/gso.h @@ -51,20 +51,6 @@ vnet_gso_header_offset_parser (vlib_buffer_t * b0, int is_ip6) u8 l4_proto = 0; u8 l4_hdr_sz = 0; - if (PREDICT_TRUE ((b0->flags & (VNET_BUFFER_F_L2_HDR_OFFSET_VALID | - VNET_BUFFER_F_L3_HDR_OFFSET_VALID | - VNET_BUFFER_F_L4_HDR_OFFSET_VALID)) == - (VNET_BUFFER_F_L2_HDR_OFFSET_VALID | - VNET_BUFFER_F_L3_HDR_OFFSET_VALID | - VNET_BUFFER_F_L4_HDR_OFFSET_VALID))) - { - gho.l2_hdr_offset = vnet_buffer (b0)->l2_hdr_offset; - gho.l3_hdr_offset = vnet_buffer (b0)->l3_hdr_offset; - gho.l4_hdr_offset = vnet_buffer (b0)->l4_hdr_offset; - gho.l4_hdr_sz = vnet_buffer2 (b0)->gso_l4_hdr_sz; - return gho; - } - ethernet_header_t *eh = (ethernet_header_t *) vlib_buffer_get_current (b0); u16 ethertype = clib_net_to_host_u16 (eh->type); u16 l2hdr_sz = sizeof (ethernet_header_t); |