| 257 | } |
| 258 | |
| 259 | static void close_ports(void) |
| 260 | { |
| 261 | uint16_t portid; |
| 262 | int ret; |
| 263 | |
| 264 | for (portid = 0; portid < app_cfg.cnt_ports; portid++) { |
| 265 | printf("Closing port %d...", portid); |
| 266 | ret = rte_eth_dev_stop(portid); |
| 267 | if (ret != 0) |
| 268 | rte_exit(EXIT_FAILURE, "rte_eth_dev_stop: err=%s, port=%u\n", |
| 269 | strerror(-ret), portid); |
| 270 | rte_eth_dev_close(portid); |
| 271 | printf(" Done\n"); |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | int main(int argc, char **argv) |
| 276 | { |
no test coverage detected