From: Wei Zhao Date: Wed, 7 Nov 2018 06:14:29 +0000 (+0800) Subject: app/testpmd: fix Rx offload search X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=054075ea9031edb5d3355cb76e821c0794410ca4 app/testpmd: fix Rx offload search There is an error in function search_rx_offload(), it will break when get unexpected return value from function rte_eth_dev_rx_offload_name(), but rte_eth_dev_rx_offload_name() will return some unexpected value indeed. Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Tested-by: Yuan Peng --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 5e08a1b9b9..1275074108 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -17805,10 +17805,7 @@ search_rx_offload(const char *name) if (!strcasecmp(single_name, name)) { found = 1; break; - } else if (!strcasecmp(single_name, "UNKNOWN")) - break; - else if (single_name == NULL) - break; + } single_offload <<= 1; }