From: Olivier Matz Date: Fri, 13 Feb 2015 09:22:48 +0000 (+0100) Subject: app/testpmd: warn if outer ip cksum is requested but not supported X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c86e19755a86005548810707c9aa4757f233f7ec;p=dpdk.git app/testpmd: warn if outer ip cksum is requested but not supported Signed-off-by: Olivier Matz Acked-by: Jijiang Liu --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 6a49309213..4753bb488c 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -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