diff options
Diffstat (limited to 'vpp/app')
-rw-r--r-- | vpp/app/version.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vpp/app/version.c b/vpp/app/version.c index 8a91c85b..afd1e4a3 100644 --- a/vpp/app/version.c +++ b/vpp/app/version.c @@ -14,7 +14,10 @@ */ #include <vlib/vlib.h> #include <app/version.h> + +#if DPDK > 0 #include <rte_version.h> +#endif /* DPDK */ static char * vpe_version_string = "vpp v" VPP_BUILD_VER @@ -47,7 +50,9 @@ show_vpe_version_command_fn (vlib_main_t * vm, if (unformat (input, "verbose")){ vlib_cli_output (vm, "%s", vpe_dir_string); vlib_cli_output (vm, "%s", vpe_compiler); +#if DPDK > 0 vlib_cli_output (vm, "DPDK version is %s", rte_version()); +#endif } return 0; } |