Lines Matching refs:idx_port

40 	int idx_port;  member
54 void lock_port(int idx_port) in lock_port() argument
56 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in lock_port()
61 void unlock_port(int idx_port) in unlock_port() argument
63 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in unlock_port()
68 void mark_port_active(int idx_port) in mark_port_active() argument
70 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in mark_port_active()
75 void mark_port_inactive(int idx_port) in mark_port_inactive() argument
77 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in mark_port_inactive()
82 void mark_port_newmac(int idx_port) in mark_port_newmac() argument
84 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in mark_port_newmac()
91 int idx_port; in setup_ports() local
103 for (idx_port = 0; idx_port < cnt_ports; idx_port++) { in setup_ports()
104 struct app_port *ptr_port = &app_cfg->ports[idx_port]; in setup_ports()
106 ret = rte_eth_dev_info_get(idx_port, &dev_info); in setup_ports()
110 idx_port, strerror(-ret)); in setup_ports()
115 snprintf(str_name, 16, "pkt_pool%i", idx_port); in setup_ports()
128 printf("Init port %i..\n", idx_port); in setup_ports()
131 ptr_port->idx_port = idx_port; in setup_ports()
133 if (rte_eth_dev_configure(idx_port, 1, 1, &cfg_port) < 0) in setup_ports()
136 if (rte_eth_dev_adjust_nb_rx_tx_desc(idx_port, &nb_rxd, in setup_ports()
142 idx_port, 0, nb_rxd, in setup_ports()
143 rte_eth_dev_socket_id(idx_port), NULL, in setup_ports()
149 idx_port, 0, nb_txd, in setup_ports()
150 rte_eth_dev_socket_id(idx_port), NULL) < 0) in setup_ports()
154 if (rte_eth_dev_start(idx_port) < 0) in setup_ports()
159 ret = rte_eth_macaddr_get(idx_port, &ptr_port->mac_addr); in setup_ports()
163 idx_port, rte_strerror(-ret)); in setup_ports()
188 uint16_t idx_port; in worker_main() local
193 for (idx_port = 0; idx_port < app_cfg.cnt_ports; idx_port++) { in worker_main()
195 ptr_port = &app_cfg.ports[idx_port]; in worker_main()
207 ret = rte_eth_macaddr_get(ptr_port->idx_port, in worker_main()
212 ptr_port->idx_port, in worker_main()
222 ptr_port->idx_port, 0, in worker_main()
240 ptr_port->idx_port, 0, in worker_main()