Lines Matching refs:intf
192 struct interface *intf; in add_interface() local
194 intf = malloc(sizeof(*intf)); in add_interface()
195 if (!intf) in add_interface()
198 memset(intf, 0, sizeof(*intf)); in add_interface()
199 rte_strscpy(intf->name, name, sizeof(intf->name)); in add_interface()
203 port2intf[port] = intf; in add_interface()
204 TAILQ_INSERT_TAIL(&interfaces, intf, next); in add_interface()
422 struct interface *intf; in cleanup_pdump_resources() local
424 TAILQ_FOREACH(intf, &interfaces, next) { in cleanup_pdump_resources()
425 rte_pdump_disable(intf->port, in cleanup_pdump_resources()
428 rte_eth_promiscuous_disable(intf->port); in cleanup_pdump_resources()
474 struct interface *intf; in report_packet_stats() local
479 TAILQ_FOREACH(intf, &interfaces, next) { in report_packet_stats()
480 if (rte_pdump_stats(intf->port, &pdump_stats) < 0) in report_packet_stats()
488 rte_pcapng_write_stats(out.pcapng, intf->port, NULL, in report_packet_stats()
500 intf->name, ifrecv, ifdrop, percent); in report_packet_stats()
614 struct interface *intf; in create_output() local
619 intf = TAILQ_FIRST(&interfaces); in create_output()
629 progname, intf->port, intf->name, ts, in create_output()
673 struct interface *intf; in enable_pdump() local
681 TAILQ_FOREACH(intf, &interfaces, next) { in enable_pdump()
683 ret = rte_eth_promiscuous_enable(intf->port); in enable_pdump()
687 intf->port, ret); in enable_pdump()
690 ret = rte_pdump_enable_bpf(intf->port, RTE_PDUMP_ALL_QUEUES, in enable_pdump()