Lines Matching refs:portid
133 uint16_t portid; member
394 uint16_t portid; in main_loop() local
412 portid = qconf->rx_queue_list[i].portid; in main_loop()
414 portid); in main_loop()
431 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main_loop()
432 if (qconf->tx_mbufs[portid].len == 0) in main_loop()
435 qconf->tx_mbufs[portid].len, in main_loop()
436 portid); in main_loop()
437 qconf->tx_mbufs[portid].len = 0; in main_loop()
448 portid = qconf->rx_queue_list[i].portid; in main_loop()
449 nb_rx = rte_eth_rx_burst(portid, 0, pkts_burst, in main_loop()
462 l3fwd_simple_forward(pkts_burst[j], qconf, i, portid); in main_loop()
467 l3fwd_simple_forward(pkts_burst[j], qconf, i, portid); in main_loop()
595 uint16_t portid; in check_all_ports_link_status() local
605 RTE_ETH_FOREACH_DEV(portid) { in check_all_ports_link_status()
606 if ((port_mask & (1 << portid)) == 0) in check_all_ports_link_status()
609 ret = rte_eth_link_get_nowait(portid, &link); in check_all_ports_link_status()
614 portid, rte_strerror(-ret)); in check_all_ports_link_status()
621 printf("Port %d %s\n", portid, in check_all_ports_link_status()
651 check_ptype(int portid) in check_ptype() argument
657 ret = rte_eth_dev_get_supported_ptypes(portid, ptype_mask, NULL, 0); in check_ptype()
663 ret = rte_eth_dev_get_supported_ptypes(portid, ptype_mask, ptypes, ret); in check_ptype()
672 printf("port %d cannot parse RTE_PTYPE_L3_IPV4\n", portid); in check_ptype()
675 printf("port %d cannot parse RTE_PTYPE_L3_IPV6\n", portid); in check_ptype()
872 uint16_t portid; in main() local
901 RTE_ETH_FOREACH_DEV(portid) { in main()
906 if ((enabled_port_mask & (1 << portid)) == 0) { in main()
907 printf("Skipping disabled port %d\n", portid); in main()
914 ret = rte_eth_dev_info_get(portid, &dev_info); in main()
918 portid, strerror(-ret)); in main()
940 rxq->portid = portid; in main()
948 printf("Initializing port %d on lcore %u...", portid, in main()
955 ret = rte_eth_dev_configure(portid, 1, (uint16_t)n_tx_queue, in main()
961 ret, portid); in main()
965 ret = rte_eth_dev_set_mtu(portid, local_port_conf.rxmode.mtu); in main()
970 ret, portid); in main()
973 ret = rte_eth_dev_adjust_nb_rx_tx_desc(portid, &nb_rxd, in main()
978 "descriptors: err=%d, port=%d\n", ret, portid); in main()
984 ret = rte_eth_rx_queue_setup(portid, 0, nb_rxd, in main()
991 ret, portid); in main()
994 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main()
999 ret, portid); in main()
1002 print_ethaddr(" Address:", &ports_eth_addr[portid]); in main()
1006 ret = rte_eth_dev_info_get(portid, &dev_info); in main()
1010 portid, strerror(-ret)); in main()
1026 ret = rte_eth_tx_queue_setup(portid, queueid, nb_txd, in main()
1031 "err=%d, port=%d\n", ret, portid); in main()
1035 qconf->tx_queue_id[portid] = queueid; in main()
1045 RTE_ETH_FOREACH_DEV(portid) { in main()
1046 if ((enabled_port_mask & (1 << portid)) == 0) { in main()
1050 ret = rte_eth_dev_start(portid); in main()
1053 ret, portid); in main()
1055 ret = rte_eth_promiscuous_enable(portid); in main()
1059 rte_strerror(-ret), portid); in main()
1061 if (check_ptype(portid) == 0) { in main()
1062 rte_eth_add_rx_callback(portid, 0, cb_parse_ptype, NULL); in main()
1064 " port = %d\n", portid); in main()