| 2631 | } |
| 2632 | |
| 2633 | static int |
| 2634 | all_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 | |
| 2651 | int |
| 2652 | port_is_stopped(portid_t port_id) |
no outgoing calls
no test coverage detected