Lines Matching refs:retval
198 int retval; in port_init() local
208 retval = rte_eth_dev_info_get(port, &dev_info); in port_init()
209 if (retval != 0) { in port_init()
211 port, strerror(-retval)); in port_init()
212 return retval; in port_init()
220 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
221 if (retval != 0) in port_init()
222 return retval; in port_init()
226 retval = rte_eth_rx_queue_setup(port, q, RX_RING_SIZE, in port_init()
228 if (retval < 0) in port_init()
229 return retval; in port_init()
236 retval = rte_eth_tx_queue_setup(port, q, TX_RING_SIZE, in port_init()
238 if (retval < 0) in port_init()
239 return retval; in port_init()
243 retval = rte_eth_dev_start(port); in port_init()
245 if (retval < 0) in port_init()
246 return retval; in port_init()
249 retval = rte_eth_macaddr_get(port, &addr); in port_init()
250 if (retval != 0) in port_init()
251 return retval; in port_init()
258 retval = rte_eth_promiscuous_enable(port); in port_init()
259 if (retval != 0) in port_init()
260 return retval; in port_init()