summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorChenbo Xia <chenbo.xia@intel.com>2019-04-10 02:46:36 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-04-12 11:02:02 +0200
commit2b0e0eba2c37a1d53bf179c2e676eb920a6ac85c (patch)
tree77f3865bbbe57256865e53f58901009da0097bb1 /app
parent169a9fed1f4cbca7e432fdc9ad1d44922ad783f6 (diff)
downloaddpdk-2b0e0eba2c37a1d53bf179c2e676eb920a6ac85c.zip
dpdk-2b0e0eba2c37a1d53bf179c2e676eb920a6ac85c.tar.gz
dpdk-2b0e0eba2c37a1d53bf179c2e676eb920a6ac85c.tar.xz
app/testpmd: fix return value check
Fix unchecked return value issue for rte_eth_dev_configure. Coverity issue: 195021 Fixes: 2a977b891f99 ("app/testpmd: fix DCB configuration") Cc: stable@dpdk.org Signed-off-by: Chenbo Xia <chenbo.xia@intel.com> Acked-by: Rami Rosen <ramirose@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/testpmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 2e99d99..d01165f 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -3037,8 +3037,9 @@ init_port_dcb_config(portid_t pid,
port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_VLAN_FILTER;
/* re-configure the device . */
- rte_eth_dev_configure(pid, nb_rxq, nb_rxq, &port_conf);
-
+ retval = rte_eth_dev_configure(pid, nb_rxq, nb_rxq, &port_conf);
+ if (retval < 0)
+ return retval;
rte_eth_dev_info_get(pid, &rte_port->dev_info);
/* If dev_info.vmdq_pool_base is greater than 0,