Lines Matching refs:retval

134 	int retval;  in slave_port_init()  local
145 retval = rte_eth_dev_info_get(portid, &dev_info); in slave_port_init()
146 if (retval != 0) in slave_port_init()
149 portid, strerror(-retval)); in slave_port_init()
166 retval = rte_eth_dev_configure(portid, 1, 1, &local_port_conf); in slave_port_init()
167 if (retval != 0) in slave_port_init()
169 portid, retval); in slave_port_init()
171 retval = rte_eth_dev_adjust_nb_rx_tx_desc(portid, &nb_rxd, &nb_txd); in slave_port_init()
172 if (retval != 0) in slave_port_init()
174 "failed (res=%d)\n", portid, retval); in slave_port_init()
179 retval = rte_eth_rx_queue_setup(portid, 0, nb_rxd, in slave_port_init()
183 if (retval < 0) in slave_port_init()
184 rte_exit(retval, " port %u: RX queue 0 setup failed (res=%d)", in slave_port_init()
185 portid, retval); in slave_port_init()
190 retval = rte_eth_tx_queue_setup(portid, 0, nb_txd, in slave_port_init()
193 if (retval < 0) in slave_port_init()
194 rte_exit(retval, "port %u: TX queue 0 setup failed (res=%d)", in slave_port_init()
195 portid, retval); in slave_port_init()
197 retval = rte_eth_dev_start(portid); in slave_port_init()
198 if (retval < 0) in slave_port_init()
199 rte_exit(retval, in slave_port_init()
201 portid, retval); in slave_port_init()
205 retval = rte_eth_macaddr_get(portid, &addr); in slave_port_init()
206 if (retval != 0) in slave_port_init()
207 rte_exit(retval, in slave_port_init()
209 portid, retval); in slave_port_init()
219 int retval; in bond_port_init() local
229 retval = rte_eth_bond_create("net_bonding0", BONDING_MODE_ALB, in bond_port_init()
231 if (retval < 0) in bond_port_init()
235 BOND_PORT = retval; in bond_port_init()
237 retval = rte_eth_dev_info_get(BOND_PORT, &dev_info); in bond_port_init()
238 if (retval != 0) in bond_port_init()
241 BOND_PORT, strerror(-retval)); in bond_port_init()
246 retval = rte_eth_dev_configure(BOND_PORT, 1, 1, &local_port_conf); in bond_port_init()
247 if (retval != 0) in bond_port_init()
249 BOND_PORT, retval); in bond_port_init()
251 retval = rte_eth_dev_adjust_nb_rx_tx_desc(BOND_PORT, &nb_rxd, &nb_txd); in bond_port_init()
252 if (retval != 0) in bond_port_init()
254 "failed (res=%d)\n", BOND_PORT, retval); in bond_port_init()
266 retval = rte_eth_rx_queue_setup(BOND_PORT, 0, nb_rxd, in bond_port_init()
269 if (retval < 0) in bond_port_init()
270 rte_exit(retval, " port %u: RX queue 0 setup failed (res=%d)", in bond_port_init()
271 BOND_PORT, retval); in bond_port_init()
276 retval = rte_eth_tx_queue_setup(BOND_PORT, 0, nb_txd, in bond_port_init()
279 if (retval < 0) in bond_port_init()
280 rte_exit(retval, "port %u: TX queue 0 setup failed (res=%d)", in bond_port_init()
281 BOND_PORT, retval); in bond_port_init()
283 retval = rte_eth_dev_start(BOND_PORT); in bond_port_init()
284 if (retval < 0) in bond_port_init()
285 rte_exit(retval, "Start port %d failed (res=%d)", BOND_PORT, retval); in bond_port_init()
301 retval = rte_eth_promiscuous_enable(BOND_PORT); in bond_port_init()
302 if (retval != 0) { in bond_port_init()
305 BOND_PORT, rte_strerror(-retval)); in bond_port_init()
311 retval = rte_eth_macaddr_get(BOND_PORT, &addr); in bond_port_init()
312 if (retval != 0) in bond_port_init()
313 rte_exit(retval, "port %u: Mac address get failed (res=%d)", in bond_port_init()
314 BOND_PORT, retval); in bond_port_init()