diff options
author | Damjan Marion <damarion@cisco.com> | 2017-01-16 21:36:28 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-01-16 23:19:02 +0000 |
commit | 597d3c4121b4dd557328c11debb42927a45d52fb (patch) | |
tree | 7ff9aa83855eea8040586c7d5b4b0a9e71c4054c /src/vnet/devices | |
parent | 42e480d6e5ac5af0b5f7b9bc6b8d40766be5f873 (diff) |
dpdk: add 'show dpdk version' cli
Change-Id: Iaecebae25ee4b8df8ca919992a0433e92e82e90c
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices')
-rw-r--r-- | src/vnet/devices/dpdk/cli.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/vnet/devices/dpdk/cli.c b/src/vnet/devices/dpdk/cli.c index 22bd4b4fa23..3bbace26b73 100644 --- a/src/vnet/devices/dpdk/cli.c +++ b/src/vnet/devices/dpdk/cli.c @@ -1279,6 +1279,26 @@ VLIB_CLI_COMMAND (cmd_show_dpdk_hqos_queue_stats, static) = { }; /* *INDENT-ON* */ +static clib_error_t * +show_dpdk_version_command_fn (vlib_main_t * vm, + unformat_input_t * input, + vlib_cli_command_t * cmd) +{ +#define _(a,b,c) vlib_cli_output (vm, "%-25s " b, a ":", c); + _("DPDK Version", "%s", rte_version ()); + _("DPDK EAL init args", "%s", dpdk_config_main.eal_init_args_str); +#undef _ + return 0; +} + +/* *INDENT-OFF* */ +VLIB_CLI_COMMAND (show_vpe_version_command, static) = { + .path = "show dpdk version", + .short_help = "show dpdk version information", + .function = show_dpdk_version_command_fn, +}; +/* *INDENT-ON* */ + clib_error_t * dpdk_cli_init (vlib_main_t * vm) { |