]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/config.c
app/testpmd: VXLAN Tx checksum offload
[dpdk.git] / app / test-pmd / config.c
index 2a1b93f6c3c2235a00966bde31f81726e7ed290d..9bc08f434b44fccb144bbfb6590cf8cacff27c05 100644 (file)
@@ -1753,9 +1753,9 @@ tx_cksum_set(portid_t port_id, uint64_t ol_flags)
        uint64_t tx_ol_flags;
        if (port_id_is_invalid(port_id))
                return;
-       /* Clear last 4 bits and then set L3/4 checksum mask again */
-       tx_ol_flags = ports[port_id].tx_ol_flags & (~0x0Full);
-       ports[port_id].tx_ol_flags = ((ol_flags & 0xf) | tx_ol_flags);
+       /* Clear last 8 bits and then set L3/4 checksum mask again */
+       tx_ol_flags = ports[port_id].tx_ol_flags & (~0x0FFull);
+       ports[port_id].tx_ol_flags = ((ol_flags & 0xff) | tx_ol_flags);
 }
 
 void