Lines Matching refs:retval
196 int retval; in smp_port_init() local
211 retval = rte_eth_dev_info_get(port, &info); in smp_port_init()
212 if (retval != 0) { in smp_port_init()
214 port, strerror(-retval)); in smp_port_init()
215 return retval; in smp_port_init()
234 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in smp_port_init()
235 if (retval == -EINVAL) { in smp_port_init()
239 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in smp_port_init()
242 if (retval == -ENOTSUP) { in smp_port_init()
246 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in smp_port_init()
249 if (retval < 0) in smp_port_init()
250 return retval; in smp_port_init()
252 retval = rte_eth_dev_adjust_nb_rx_tx_desc(port, &nb_rxd, &nb_txd); in smp_port_init()
253 if (retval < 0) in smp_port_init()
254 return retval; in smp_port_init()
259 retval = rte_eth_rx_queue_setup(port, q, nb_rxd, in smp_port_init()
263 if (retval < 0) in smp_port_init()
264 return retval; in smp_port_init()
270 retval = rte_eth_tx_queue_setup(port, q, nb_txd, in smp_port_init()
273 if (retval < 0) in smp_port_init()
274 return retval; in smp_port_init()
277 retval = rte_eth_promiscuous_enable(port); in smp_port_init()
278 if (retval != 0) in smp_port_init()
279 return retval; in smp_port_init()
281 retval = rte_eth_dev_start(port); in smp_port_init()
282 if (retval < 0) in smp_port_init()
283 return retval; in smp_port_init()