app/testpmd: fix Rx offload search
authorWei Zhao <wei.zhao1@intel.com>
Wed, 7 Nov 2018 06:14:29 +0000 (14:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit054075ea9031edb5d3355cb76e821c0794410ca4
tree3142a040ae71cde18deb2480cfba2b5b6fe71446
parenta5e7c52dac2d369af379c59a7770bfd507ccf153
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 <wei.zhao1@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
app/test-pmd/cmdline.c