| 146 | } |
| 147 | |
| 148 | void |
| 149 | ethdev_stop(void) |
| 150 | { |
| 151 | uint16_t portid; |
| 152 | int rc; |
| 153 | |
| 154 | RTE_ETH_FOREACH_DEV(portid) { |
| 155 | if ((enabled_port_mask & (1 << portid)) == 0) |
| 156 | continue; |
| 157 | printf("Closing port %d...", portid); |
| 158 | rc = rte_eth_dev_stop(portid); |
| 159 | if (rc != 0) |
| 160 | printf("Failed to stop port %u: %s\n", |
| 161 | portid, rte_strerror(-rc)); |
| 162 | rte_eth_dev_close(portid); |
| 163 | printf(" Done\n"); |
| 164 | } |
| 165 | |
| 166 | ethdev_list_clean(); |
| 167 | route_ip4_list_clean(); |
| 168 | route_ip6_list_clean(); |
| 169 | neigh4_list_clean(); |
| 170 | neigh6_list_clean(); |
| 171 | printf("Bye...\n"); |
| 172 | } |
| 173 | |
| 174 | void |
| 175 | ethdev_start(void) |
no test coverage detected