예제 #1
1
파일: dpdk.c 프로젝트: roccen/lagopus
void
app_init(void) {
  app_assign_worker_ids();
  app_init_mbuf_pools();
  app_init_rings_rx();
  app_init_rings_tx();
  app_init_nics();
#ifdef __linux__
  app_init_kni();
#endif /* __linux__ */

  printf("Initialization completed.\n");
}
예제 #2
0
파일: init.c 프로젝트: emmericp/dpdk
int app_init(struct app_params *app)
{
	app_init_core_map(app);
	app_init_core_mask(app);

	app_init_eal(app);
	app_init_mempool(app);
	app_init_link(app);
	app_init_swq(app);
	app_init_tm(app);
	app_init_tap(app);
	app_init_kni(app);
	app_init_msgq(app);

	app_pipeline_common_cmd_push(app);
	app_pipeline_thread_cmd_push(app);
	app_pipeline_type_register(app, &pipeline_master);
	app_pipeline_type_register(app, &pipeline_passthrough);
	app_pipeline_type_register(app, &pipeline_flow_classification);
	app_pipeline_type_register(app, &pipeline_flow_actions);
	app_pipeline_type_register(app, &pipeline_firewall);
	app_pipeline_type_register(app, &pipeline_routing);

	app_init_pipelines(app);
	app_init_threads(app);

	return 0;
}