| 326 | } |
| 327 | |
| 328 | int |
| 329 | main(int argc, char *argv[]) |
| 330 | { |
| 331 | /* initialise the system */ |
| 332 | if (init(argc, argv) < 0) |
| 333 | return -1; |
| 334 | RTE_LOG(INFO, APP, "Finished Process Init.\n"); |
| 335 | |
| 336 | cl_rx_buf = calloc(num_nodes, sizeof(cl_rx_buf[0])); |
| 337 | |
| 338 | /* clear statistics */ |
| 339 | clear_stats(); |
| 340 | |
| 341 | /* put all other cores to sleep except main */ |
| 342 | rte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MAIN); |
| 343 | |
| 344 | do_packet_forwarding(); |
| 345 | |
| 346 | /* clean up the EAL */ |
| 347 | rte_eal_cleanup(); |
| 348 | |
| 349 | return 0; |
| 350 | } |
nothing calls this directly
no test coverage detected