MCPcopy Create free account
hub / github.com/F-Stack/f-stack / all_ports_started

Function all_ports_started

dpdk/app/test-pmd/testpmd.c:2633–2649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2631}
2632
2633static int
2634all_ports_started(void)
2635{
2636 portid_t pi;
2637 struct rte_port *port;
2638
2639 RTE_ETH_FOREACH_DEV(pi) {
2640 port = &ports[pi];
2641 /* Check if there is a port which is not started */
2642 if ((port->port_status != RTE_PORT_STARTED) &&
2643 (port->member_flag == 0))
2644 return 0;
2645 }
2646
2647 /* No port is not started */
2648 return 1;
2649}
2650
2651int
2652port_is_stopped(portid_t port_id)

Callers 1

start_packet_forwardingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected