diff options
author | Damjan Marion <damarion@cisco.com> | 2016-02-16 12:29:57 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-02-16 13:07:20 +0100 |
commit | d8ff0e1dc7a1d7a6d24f16a5318b7fded908d2c5 (patch) | |
tree | e776156daa8d361cdba22f5ea6fe8a84bc5d5c01 /vpp | |
parent | d81566ff92f011704f249372e62f0b5aff1d0653 (diff) |
Show DPDK EAL cmdline args in 'show version verbose'
Change-Id: I88a8038a36e7e5060f354cd66a2532ef8c996b67
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r-- | vpp/app/version.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/vpp/app/version.c b/vpp/app/version.c index afd1e4a3..1c1f7a61 100644 --- a/vpp/app/version.c +++ b/vpp/app/version.c @@ -17,6 +17,8 @@ #if DPDK > 0 #include <rte_version.h> +#include <vnet/vnet.h> +#include <vnet/devices/dpdk/dpdk.h> #endif /* DPDK */ static char * vpe_version_string = @@ -47,13 +49,16 @@ show_vpe_version_command_fn (vlib_main_t * vm, vlib_cli_command_t * cmd) { vlib_cli_output (vm, "%s", vpe_version_string); - if (unformat (input, "verbose")){ - vlib_cli_output (vm, "%s", vpe_dir_string); - vlib_cli_output (vm, "%s", vpe_compiler); + 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()); + vlib_cli_output (vm, "DPDK version is %s", rte_version()); + vlib_cli_output (vm, "DPDK EAL init arguments: %v", + dpdk_main.eal_init_args_str); #endif - } + } return 0; } |