]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_event_eth_rx_adapter.c
app: check status of getting ethdev info
[dpdk.git] / app / test / test_event_eth_rx_adapter.c
index 953b8274565c74c0030399355783d5b20226b3b4..950bc67c2f8a0440f40f12212af5913415abba1c 100644 (file)
@@ -45,7 +45,9 @@ port_init_common(uint16_t port, const struct rte_eth_conf *port_conf,
 
        retval = rte_eth_dev_configure(port, 0, 0, port_conf);
 
-       rte_eth_dev_info_get(port, &dev_info);
+       retval = rte_eth_dev_info_get(port, &dev_info);
+       if (retval != 0)
+               return retval;
 
        default_params.rx_rings = RTE_MIN(dev_info.max_rx_queues,
                                        MAX_NUM_RX_QUEUE);