* Launch packet forwarding: * - Setup per-port forwarding context. * - launch logical cores with their forwarding configuration. */
| 2382 | * - launch logical cores with their forwarding configuration. |
| 2383 | */ |
| 2384 | static void |
| 2385 | launch_packet_forwarding(lcore_function_t *pkt_fwd_on_lcore) |
| 2386 | { |
| 2387 | unsigned int i; |
| 2388 | unsigned int lc_id; |
| 2389 | int diag; |
| 2390 | |
| 2391 | for (i = 0; i < cur_fwd_config.nb_fwd_lcores; i++) { |
| 2392 | lc_id = fwd_lcores_cpuids[i]; |
| 2393 | if ((interactive == 0) || (lc_id != rte_lcore_id())) { |
| 2394 | fwd_lcores[i]->stopped = 0; |
| 2395 | diag = rte_eal_remote_launch(pkt_fwd_on_lcore, |
| 2396 | fwd_lcores[i], lc_id); |
| 2397 | if (diag != 0) |
| 2398 | fprintf(stderr, |
| 2399 | "launch lcore %u failed - diag=%d\n", |
| 2400 | lc_id, diag); |
| 2401 | } |
| 2402 | } |
| 2403 | } |
| 2404 | |
| 2405 | void |
| 2406 | common_fwd_stream_init(struct fwd_stream *fs) |
no test coverage detected