Lines Matching refs:portid

381 	uint16_t portid;  in send_timeout_burst()  local
388 for (portid = 0; portid < MAX_PORTS; portid++) { in send_timeout_burst()
389 if (qconf->tx_mbufs[portid].len != 0) in send_timeout_burst()
390 send_burst(qconf, portid); in send_timeout_burst()
402 uint16_t portid; in main_loop() local
420 portid = qconf->rx_queue_list[i]; in main_loop()
422 lcore_id, portid); in main_loop()
432 portid = qconf->rx_queue_list[i]; in main_loop()
433 nb_rx = rte_eth_rx_burst(portid, 0, pkts_burst, in main_loop()
590 uint16_t portid; in check_all_ports_link_status() local
600 RTE_ETH_FOREACH_DEV(portid) { in check_all_ports_link_status()
601 if ((port_mask & (1 << portid)) == 0) in check_all_ports_link_status()
604 ret = rte_eth_link_get_nowait(portid, &link); in check_all_ports_link_status()
609 portid, rte_strerror(-ret)); in check_all_ports_link_status()
617 printf("Port %d %s\n", portid, in check_all_ports_link_status()
655 uint16_t portid; in main() local
698 RTE_ETH_FOREACH_DEV(portid) { in main()
703 if ((enabled_port_mask & (1 << portid)) == 0) { in main()
704 printf("Skipping disabled port %d\n", portid); in main()
711 ret = rte_eth_dev_info_get(portid, &dev_info); in main()
715 portid, strerror(-ret)); in main()
731 qconf->rx_queue_list[qconf->n_rx_queue] = portid; in main()
735 printf("Initializing port %d on lcore %u... ", portid, in main()
743 ret = rte_eth_dev_configure(portid, 1, (uint16_t)n_tx_queue, in main()
747 ret, portid); in main()
749 ret = rte_eth_dev_adjust_nb_rx_tx_desc(portid, &nb_rxd, in main()
754 ret, portid); in main()
756 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main()
760 ret, portid); in main()
762 print_ethaddr(" Address:", &ports_eth_addr[portid]); in main()
771 ret = rte_eth_rx_queue_setup(portid, queueid, nb_rxd, in main()
772 rte_eth_dev_socket_id(portid), in main()
777 ret, portid); in main()
790 ret = rte_eth_tx_queue_setup(portid, queueid, nb_txd, in main()
794 "port=%d\n", ret, portid); in main()
797 qconf->tx_queue_id[portid] = queueid; in main()
800 ret = rte_eth_allmulticast_enable(portid); in main()
804 ret, portid); in main()
806 ret = rte_eth_dev_start(portid); in main()
809 ret, portid); in main()