]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/csumonly.c
app/testpmd: add csum parse-tunnel command
[dpdk.git] / app / test-pmd / csumonly.c
index ca5ca396213577aba86ffd76cd166b7d3730d908..858eb47b58c79865794e71c1c2c5e69a2cf1fe23 100644 (file)
@@ -373,7 +373,8 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
                l3_hdr = (char *)eth_hdr + l2_len;
 
                /* check if it's a supported tunnel (only vxlan for now) */
-               if (l4_proto == IPPROTO_UDP) {
+               if ((testpmd_ol_flags & TESTPMD_TX_OFFLOAD_PARSE_TUNNEL) &&
+                       l4_proto == IPPROTO_UDP) {
                        udp_hdr = (struct udp_hdr *)((char *)l3_hdr + l3_len);
 
                        /* check udp destination port, 4789 is the default