X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fgso%2Fhdr_offset_parser.h;h=08037f57ea069a45b98d50b1bdbb302b32aeba5d;hb=4897257dbeb61061fd7ff8b8d3854784d16366de;hp=999a27880af4138ffc036103455edb03a0a301d1;hpb=8b90d89b05322ceaaf57e0eda403c4f92546f7b3;p=vpp.git diff --git a/src/vnet/gso/hdr_offset_parser.h b/src/vnet/gso/hdr_offset_parser.h index 999a27880af..08037f57ea0 100644 --- a/src/vnet/gso/hdr_offset_parser.h +++ b/src/vnet/gso/hdr_offset_parser.h @@ -23,7 +23,8 @@ #include #include #include -#include + +#define VXLAN_HEADER_SIZE 8 #define foreach_gho_flag \ _( 0, IP4) \ @@ -437,7 +438,7 @@ vnet_generic_outer_header_parser_inline (vlib_buffer_t * b0, if (UDP_DST_PORT_vxlan == clib_net_to_host_u16 (udp->dst_port)) { gho->gho_flags |= GHO_F_VXLAN_TUNNEL; - gho->hdr_sz += sizeof (vxlan_header_t); + gho->hdr_sz += VXLAN_HEADER_SIZE; } else if (UDP_DST_PORT_geneve == clib_net_to_host_u16 (udp->dst_port)) {