Lines Matching refs:ptr_port

56 	struct app_port *ptr_port = &app_cfg.ports[idx_port];  in lock_port()  local
58 rte_spinlock_lock(&ptr_port->lock); in lock_port()
63 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in unlock_port() local
65 rte_spinlock_unlock(&ptr_port->lock); in unlock_port()
70 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in mark_port_active() local
72 ptr_port->port_active = 1; in mark_port_active()
77 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in mark_port_inactive() local
79 ptr_port->port_active = 0; in mark_port_inactive()
84 struct app_port *ptr_port = &app_cfg.ports[idx_port]; in mark_port_newmac() local
86 ptr_port->port_dirty = 1; in mark_port_newmac()
104 struct app_port *ptr_port = &app_cfg->ports[idx_port]; in setup_ports() local
116 ptr_port->pkt_pool = rte_pktmbuf_pool_create( in setup_ports()
123 if (ptr_port->pkt_pool == NULL) in setup_ports()
129 ptr_port->port_active = 1; in setup_ports()
130 ptr_port->port_dirty = 0; in setup_ports()
131 ptr_port->idx_port = idx_port; in setup_ports()
144 ptr_port->pkt_pool) < 0) in setup_ports()
159 ret = rte_eth_macaddr_get(idx_port, &ptr_port->mac_addr); in setup_ports()
165 rte_spinlock_init(&ptr_port->lock); in setup_ports()
169 static void process_frame(struct app_port *ptr_port, in process_frame() argument
176 rte_ether_addr_copy(&ptr_port->mac_addr, &ptr_mac_hdr->s_addr); in process_frame()
181 struct app_port *ptr_port; in worker_main() local
195 ptr_port = &app_cfg.ports[idx_port]; in worker_main()
196 lock_result = rte_spinlock_trylock(&ptr_port->lock); in worker_main()
199 if (ptr_port->port_active == 0) { in worker_main()
200 rte_spinlock_unlock(&ptr_port->lock); in worker_main()
203 txq = &ptr_port->txq; in worker_main()
206 if (ptr_port->port_dirty == 1) { in worker_main()
207 ret = rte_eth_macaddr_get(ptr_port->idx_port, in worker_main()
208 &ptr_port->mac_addr); in worker_main()
210 rte_spinlock_unlock(&ptr_port->lock); in worker_main()
212 ptr_port->idx_port, in worker_main()
217 ptr_port->port_dirty = 0; in worker_main()
222 ptr_port->idx_port, 0, in worker_main()
232 process_frame(ptr_port, ptr_frame); in worker_main()
240 ptr_port->idx_port, 0, in worker_main()
252 rte_spinlock_unlock(&ptr_port->lock); in worker_main()