summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTao Zhu <taox.zhu@intel.com>2019-09-26 02:03:15 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-07 15:00:56 +0200
commit84057fd07e6664e8a656531f23b64ed5c41e039a (patch)
treea79aca44202f6900ec8f20e16e577546fd045342 /app
parent1cde1b9a9b4dbf31cb5e5ccdfc5da3cb079f43a2 (diff)
downloaddpdk-84057fd07e6664e8a656531f23b64ed5c41e039a.zip
dpdk-84057fd07e6664e8a656531f23b64ed5c41e039a.tar.gz
dpdk-84057fd07e6664e8a656531f23b64ed5c41e039a.tar.xz
app/testpmd: fix build for 16-byte Rx descriptor mode
This minor patch fixes unused variable ‘ret’ compile error When CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected. Fixes: 6f51deb903b2 ("app/testpmd: check status of getting ethdev info") Signed-off-by: Tao Zhu <taox.zhu@intel.com> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 957c61f..a3b6cbd 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1649,10 +1649,10 @@ ring_rx_descriptor_display(const struct rte_memzone *ring_mz,
#endif
uint16_t desc_id)
{
- int ret;
struct igb_ring_desc_16_bytes *ring =
(struct igb_ring_desc_16_bytes *)ring_mz->addr;
#ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC
+ int ret;
struct rte_eth_dev_info dev_info;
ret = eth_dev_info_get_print_err(port_id, &dev_info);