]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/cmdline.c
app/testpmd: warn if outer ip cksum is requested but not supported
[dpdk.git] / app / test-pmd / cmdline.c
index 6a49309213a7a8a04d44f98ae953483ca04b6d7e..4753bb488c416afdcc7393a21399f27911690bda 100644 (file)
@@ -2939,7 +2939,11 @@ csum_show(int port_id)
                printf("Warning: hardware SCTP checksum enabled but not "
                        "supported by port %d\n", port_id);
        }
-
+       if ((ol_flags & TESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM) &&
+               (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) == 0) {
+               printf("Warning: hardware outer IP checksum enabled but not "
+                       "supported by port %d\n", port_id);
+       }
 }
 
 static void