gso: remove vxlan header include file dependency
[vpp.git] / src / vnet / gso / hdr_offset_parser.h
index 999a278..08037f5 100644 (file)
@@ -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))
        {