Lines Matching refs:retval

41 	int retval;  in port_init_common()  local
48 retval = rte_eth_dev_configure(port, 0, 0, port_conf); in port_init_common()
50 retval = rte_eth_dev_info_get(port, &dev_info); in port_init_common()
51 if (retval != 0) in port_init_common()
52 return retval; in port_init_common()
59 retval = rte_eth_dev_configure(port, default_params.rx_rings, in port_init_common()
61 if (retval != 0) in port_init_common()
62 return retval; in port_init_common()
65 retval = rte_eth_rx_queue_setup(port, q, rx_ring_size, in port_init_common()
67 if (retval < 0) in port_init_common()
68 return retval; in port_init_common()
73 retval = rte_eth_tx_queue_setup(port, q, tx_ring_size, in port_init_common()
75 if (retval < 0) in port_init_common()
76 return retval; in port_init_common()
80 retval = rte_eth_dev_start(port); in port_init_common()
81 if (retval < 0) in port_init_common()
82 return retval; in port_init_common()
86 retval = rte_eth_macaddr_get(port, &addr); in port_init_common()
87 if (retval < 0) in port_init_common()
88 return retval; in port_init_common()
97 retval = rte_eth_promiscuous_enable(port); in port_init_common()
98 if (retval != 0) in port_init_common()
99 return retval; in port_init_common()
134 int retval; in init_port_rx_intr() local
148 retval = port_init_rx_intr(portid, default_params.mp); in init_port_rx_intr()
149 if (retval) in init_port_rx_intr()
161 retval = rte_eth_dev_stop(portid); in init_port_rx_intr()
162 TEST_ASSERT(retval == 0, "Failed to stop port %u: %d\n", in init_port_rx_intr()
163 portid, retval); in init_port_rx_intr()
172 int retval; in init_ports() local
190 retval = port_init(portid, default_params.mp); in init_ports()
191 if (retval) in init_ports()
192 return retval; in init_ports()