MCPcopy Create free account
hub / github.com/F-Stack/f-stack / launch_packet_forwarding

Function launch_packet_forwarding

dpdk/app/test-pmd/testpmd.c:2384–2403  ·  view source on GitHub ↗

* Launch packet forwarding: * - Setup per-port forwarding context. * - launch logical cores with their forwarding configuration. */

Source from the content-addressed store, hash-verified

2382 * - launch logical cores with their forwarding configuration.
2383 */
2384static void
2385launch_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
2405void
2406common_fwd_stream_init(struct fwd_stream *fs)

Callers 1

start_packet_forwardingFunction · 0.85

Calls 2

rte_lcore_idFunction · 0.85
rte_eal_remote_launchFunction · 0.85

Tested by

no test coverage detected