[dpdk-dev] [PATCH 17/20] testpmd: add a warning if outer ip cksum requested but not supported
Olivier Matz
olivier.matz at 6wind.com
Fri Jan 30 14:16:12 CET 2015
Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
---
app/test-pmd/cmdline.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 70ab126..186da7b 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -2914,7 +2914,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
--
2.1.4
More information about the dev
mailing list