Lines Matching refs:retval
197 int retval; in smp_port_init() local
212 retval = rte_eth_dev_info_get(port, &info); in smp_port_init()
213 if (retval != 0) { in smp_port_init()
215 port, strerror(-retval)); in smp_port_init()
216 return retval; in smp_port_init()
235 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in smp_port_init()
236 if (retval < 0) in smp_port_init()
237 return retval; in smp_port_init()
239 retval = rte_eth_dev_adjust_nb_rx_tx_desc(port, &nb_rxd, &nb_txd); in smp_port_init()
240 if (retval < 0) in smp_port_init()
241 return retval; in smp_port_init()
246 retval = rte_eth_rx_queue_setup(port, q, nb_rxd, in smp_port_init()
250 if (retval < 0) in smp_port_init()
251 return retval; in smp_port_init()
257 retval = rte_eth_tx_queue_setup(port, q, nb_txd, in smp_port_init()
260 if (retval < 0) in smp_port_init()
261 return retval; in smp_port_init()
264 retval = rte_eth_promiscuous_enable(port); in smp_port_init()
265 if (retval != 0) in smp_port_init()
266 return retval; in smp_port_init()
268 retval = rte_eth_dev_start(port); in smp_port_init()
269 if (retval < 0) in smp_port_init()
270 return retval; in smp_port_init()