Lines Matching refs:BOND_PORT

111 static uint16_t BOND_PORT = 0xffff;  variable
235 BOND_PORT = retval; in bond_port_init()
237 retval = rte_eth_dev_info_get(BOND_PORT, &dev_info); 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()
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()
254 "failed (res=%d)\n", BOND_PORT, retval); in bond_port_init()
257 if (rte_eth_bond_slave_add(BOND_PORT, slaves[i]) == -1) in bond_port_init()
259 slaves[i], BOND_PORT); in bond_port_init()
266 retval = rte_eth_rx_queue_setup(BOND_PORT, 0, nb_rxd, in bond_port_init()
267 rte_eth_dev_socket_id(BOND_PORT), 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()
277 rte_eth_dev_socket_id(BOND_PORT), &txq_conf); in bond_port_init()
281 BOND_PORT, retval); in bond_port_init()
283 retval = rte_eth_dev_start(BOND_PORT); in bond_port_init()
285 rte_exit(retval, "Start port %d failed (res=%d)", BOND_PORT, retval); in bond_port_init()
290 if (rte_eth_bond_active_slaves_get(BOND_PORT, act_slaves, 16) == in bond_port_init()
301 retval = rte_eth_promiscuous_enable(BOND_PORT); 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()
314 BOND_PORT, retval); in bond_port_init()
316 printf("Port %u MAC: ", (unsigned)BOND_PORT); in bond_port_init()
380 rx_cnt = rte_eth_rx_burst(BOND_PORT, 0, pkts, MAX_PKT_BURST); in lcore_main()
389 ret = rte_eth_macaddr_get(BOND_PORT, &bond_mac_addr); in lcore_main()
392 "%u packets dropped", BOND_PORT, strerror(-ret), in lcore_main()
431 rte_eth_tx_burst(BOND_PORT, 0, &pkts[i], 1); in lcore_main()
434 rte_eth_tx_burst(BOND_PORT, 0, NULL, 0); in lcore_main()
450 rte_eth_tx_burst(BOND_PORT, 0, &pkts[i], 1); in lcore_main()
504 ret = rte_eth_macaddr_get(BOND_PORT, &bond_mac_addr); in cmd_obj_send_parsed()
508 BOND_PORT, strerror(-ret)); in cmd_obj_send_parsed()
542 rte_eth_tx_burst(BOND_PORT, 0, &created_pkt, 1); in cmd_obj_send_parsed()
769 rte_eth_bond_active_slaves_get(BOND_PORT, slaves, len), in cmd_show_parsed()