| 175 | } |
| 176 | |
| 177 | int |
| 178 | main(int argc, char **argv) |
| 179 | { |
| 180 | int ret; |
| 181 | unsigned lcore_id; |
| 182 | |
| 183 | ret = rte_eal_init(argc, argv); |
| 184 | if (ret < 0) |
| 185 | rte_panic("Cannot init EAL\n"); |
| 186 | |
| 187 | signal(SIGINT, sig_handler); |
| 188 | signal(SIGTERM, sig_handler); |
| 189 | |
| 190 | argc -= ret; |
| 191 | argv += ret; |
| 192 | |
| 193 | /* parse application arguments (after the EAL ones) */ |
| 194 | ret = parse_args(argc, argv); |
| 195 | if (ret < 0) |
| 196 | rte_exit(EXIT_FAILURE, "Invalid arguments\n"); |
| 197 | |
| 198 | rte_power_set_env(PM_ENV_KVM_VM); |
| 199 | RTE_LCORE_FOREACH(lcore_id) { |
| 200 | rte_power_init(lcore_id); |
| 201 | } |
| 202 | run_cli(NULL); |
| 203 | |
| 204 | /* clean up the EAL */ |
| 205 | rte_eal_cleanup(); |
| 206 | |
| 207 | return 0; |
| 208 | } |
nothing calls this directly
no test coverage detected