DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix Rx offload search error
@ 2018-11-07  6:14 Wei Zhao
  2018-11-07  7:58 ` Peng, Yuan
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Zhao @ 2018-11-07  6:14 UTC (permalink / raw)
  To: dev; +Cc: stable, yuan.peng, wenzhuo.lu, Wei Zhao

There is an error in function 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 indead.

Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API")
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 app/test-pmd/cmdline.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 5e08a1b..1275074 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;
 	}
 
-- 
2.7.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-08  1:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07  6:14 [dpdk-dev] [PATCH] app/testpmd: fix Rx offload search error Wei Zhao
2018-11-07  7:58 ` Peng, Yuan
2018-11-07 17:09   ` Iremonger, Bernard
2018-11-07 19:02   ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
2018-11-08  1:30     ` Zhao1, Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).