| 172 | } |
| 173 | |
| 174 | void |
| 175 | ethdev_start(void) |
| 176 | { |
| 177 | uint16_t portid; |
| 178 | int rc; |
| 179 | |
| 180 | RTE_ETH_FOREACH_DEV(portid) |
| 181 | { |
| 182 | if ((enabled_port_mask & (1 << portid)) == 0) |
| 183 | continue; |
| 184 | |
| 185 | rc = rte_eth_dev_start(portid); |
| 186 | if (rc < 0) |
| 187 | rte_exit(EXIT_FAILURE, "rte_eth_dev_start: err=%d, port=%d\n", rc, portid); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | |
| 192 | static int |
no test coverage detected