Skip to content

Commit

Permalink
env_dpdk: public api for initializing eal
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Savitskiy <[email protected]>
  • Loading branch information
dsavitskiy committed May 24, 2024
1 parent 6fcb046 commit 3b594a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/spdk/env_dpdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ void spdk_env_dpdk_post_fini(void);
*/
bool spdk_env_dpdk_external_init(void);

/**
* Initialize the Environment Abstraction Layer (EAL).
* See documentation for `rte_eal_init` for details.
*/
int spdk_env_dpdk_rte_eal_init(int argc, char **argv);

/**
* Dump the env allocated memory to the given file.
*
Expand Down
6 changes: 6 additions & 0 deletions lib/env_dpdk/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,3 +716,9 @@ spdk_env_dpdk_external_init(void)
{
return g_external_init;
}

int
spdk_env_dpdk_rte_eal_init(int argc, char **argv)
{
return rte_eal_init(argc, argv);
}
1 change: 1 addition & 0 deletions lib/env_dpdk/spdk_env_dpdk.map
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
spdk_env_dpdk_post_init;
spdk_env_dpdk_post_fini;
spdk_env_dpdk_external_init;
spdk_env_dpdk_rte_eal_init;
spdk_env_dpdk_dump_mem_stats;

local: *;
Expand Down

0 comments on commit 3b594a2

Please sign in to comment.