Lines Matching refs:retval
137 int retval; in slave_port_init() local
148 retval = rte_eth_dev_info_get(portid, &dev_info); in slave_port_init()
149 if (retval != 0) in slave_port_init()
152 portid, strerror(-retval)); in slave_port_init()
169 retval = rte_eth_dev_configure(portid, 1, 1, &local_port_conf); in slave_port_init()
170 if (retval != 0) in slave_port_init()
172 portid, retval); in slave_port_init()
174 retval = rte_eth_dev_adjust_nb_rx_tx_desc(portid, &nb_rxd, &nb_txd); in slave_port_init()
175 if (retval != 0) in slave_port_init()
177 "failed (res=%d)\n", portid, retval); in slave_port_init()
182 retval = rte_eth_rx_queue_setup(portid, 0, nb_rxd, in slave_port_init()
186 if (retval < 0) in slave_port_init()
187 rte_exit(retval, " port %u: RX queue 0 setup failed (res=%d)", in slave_port_init()
188 portid, retval); in slave_port_init()
193 retval = rte_eth_tx_queue_setup(portid, 0, nb_txd, in slave_port_init()
196 if (retval < 0) in slave_port_init()
197 rte_exit(retval, "port %u: TX queue 0 setup failed (res=%d)", in slave_port_init()
198 portid, retval); in slave_port_init()
200 retval = rte_eth_dev_start(portid); in slave_port_init()
201 if (retval < 0) in slave_port_init()
202 rte_exit(retval, in slave_port_init()
204 portid, retval); in slave_port_init()
208 retval = rte_eth_macaddr_get(portid, &addr); in slave_port_init()
209 if (retval != 0) in slave_port_init()
210 rte_exit(retval, in slave_port_init()
212 portid, retval); in slave_port_init()
222 int retval; in bond_port_init() local
232 retval = rte_eth_bond_create("net_bonding0", BONDING_MODE_ALB, in bond_port_init()
234 if (retval < 0) in bond_port_init()
238 BOND_PORT = retval; in bond_port_init()
240 retval = rte_eth_dev_info_get(BOND_PORT, &dev_info); in bond_port_init()
241 if (retval != 0) in bond_port_init()
244 BOND_PORT, strerror(-retval)); in bond_port_init()
249 retval = rte_eth_dev_configure(BOND_PORT, 1, 1, &local_port_conf); in bond_port_init()
250 if (retval != 0) in bond_port_init()
252 BOND_PORT, retval); in bond_port_init()
254 retval = rte_eth_dev_adjust_nb_rx_tx_desc(BOND_PORT, &nb_rxd, &nb_txd); in bond_port_init()
255 if (retval != 0) in bond_port_init()
257 "failed (res=%d)\n", BOND_PORT, retval); in bond_port_init()
269 retval = rte_eth_rx_queue_setup(BOND_PORT, 0, nb_rxd, in bond_port_init()
272 if (retval < 0) in bond_port_init()
273 rte_exit(retval, " port %u: RX queue 0 setup failed (res=%d)", in bond_port_init()
274 BOND_PORT, retval); in bond_port_init()
279 retval = rte_eth_tx_queue_setup(BOND_PORT, 0, nb_txd, in bond_port_init()
282 if (retval < 0) in bond_port_init()
283 rte_exit(retval, "port %u: TX queue 0 setup failed (res=%d)", in bond_port_init()
284 BOND_PORT, retval); in bond_port_init()
286 retval = rte_eth_dev_start(BOND_PORT); in bond_port_init()
287 if (retval < 0) in bond_port_init()
288 rte_exit(retval, "Start port %d failed (res=%d)", BOND_PORT, retval); in bond_port_init()
304 retval = rte_eth_promiscuous_enable(BOND_PORT); in bond_port_init()
305 if (retval != 0) { in bond_port_init()
308 BOND_PORT, rte_strerror(-retval)); in bond_port_init()
314 retval = rte_eth_macaddr_get(BOND_PORT, &addr); in bond_port_init()
315 if (retval != 0) in bond_port_init()
316 rte_exit(retval, "port %u: Mac address get failed (res=%d)", in bond_port_init()
317 BOND_PORT, retval); in bond_port_init()