mem: hide internal heap header
[dpdk.git] / app / test-pmd / csumonly.c
index c3fd5e1..5738128 100644 (file)
@@ -35,6 +35,7 @@
 #include <rte_ip.h>
 #include <rte_tcp.h>
 #include <rte_udp.h>
+#include <rte_vxlan.h>
 #include <rte_sctp.h>
 #include <rte_gtp.h>
 #include <rte_prefetch.h>
@@ -543,6 +544,9 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
        udp_hdr = (struct rte_udp_hdr *)
                ((char *)outer_l3_hdr + info->outer_l3_len);
 
+       if (tso_enabled)
+               ol_flags |= PKT_TX_TCP_SEG;
+
        /* Skip SW outer UDP checksum generation if HW supports it */
        if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) {
                if (info->outer_ethertype == _htons(RTE_ETHER_TYPE_IPV4))