aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/gso
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2022-10-18 08:31:20 -0700
committerBeno�t Ganne <bganne@cisco.com>2022-10-24 09:00:05 +0000
commit4897257dbeb61061fd7ff8b8d3854784d16366de (patch)
treef14fa260f5e75cf9923ac1cc7b0bd00a458393b6 /src/vnet/gso
parent8b90d89b05322ceaaf57e0eda403c4f92546f7b3 (diff)
gso: remove vxlan header include file dependency
vxlan will be moved to a plugin. Remove vnet files from including vxlan header include files. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I4268110b4ed54f7ae3ffecd6db0e3025122fa59c
Diffstat (limited to 'src/vnet/gso')
-rw-r--r--src/vnet/gso/hdr_offset_parser.h5
1 files changed, 3 insertions, 2 deletions
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 <vnet/udp/udp_packet.h>
#include <vnet/tcp/tcp_packet.h>
#include <vnet/vnet.h>
-#include <vnet/vxlan/vxlan_packet.h>
+
+#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))
{