app/testpmd: fix return value check
PATCH 1/1 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")
Signed-off-by Chenbo Xia <[email protected]>
--- app/test-pmd/testpmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
app/test-pmd/testpmd.c +3 -2
@@ -2960,8 +2960,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,
Signature · 1 line
2.17.1
Fix unchecked return value issue for rte_eth_dev_configure.
Coverity issue: 195021
Fixes 2a977b891f99 ("app/testpmd: fix DCB configuration")
Signed-off-by Chenbo Xia <[email protected]>
---
Acked-by <[email protected]>
Ferruh Yigit
AppliedQuoted 11 lines · Rami Rosen
Fix unchecked return value issue for
rte_eth_dev_configure.Coverity issue: 195021
Fixes 2a977b891f99 ("app/testpmd: fix DCB configuration")Signed-off-by Chenbo Xia <[email protected]>---
Acked-by <[email protected]>
Applied to dpdk-next-net/master, thanks.