This patch changes CLI of getting loaded profile info list from "get ddp list (port_id)" to "ddp get list (port_id)" which is more consistent with other CLIs.
Signed-off-by: Beilei Xing <beilei.x...@intel.com> --- app/test-pmd/cmdline.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 984db35..274cc36 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -215,7 +215,7 @@ static void cmd_help_long_parsed(void *parsed_result, "read txd (port_id) (queue_id) (txd_id)\n" " Display a TX descriptor of a port TX queue.\n\n" - "get ddp list (port_id)\n" + "ddp get list (port_id)\n" " Get ddp profile info list\n\n" ); } @@ -12820,16 +12820,16 @@ cmdline_parse_inst_t cmd_add_ddp = { #define MAX_PROFILE_NUM 16 struct cmd_get_ddp_list_result { - cmdline_fixed_string_t get; cmdline_fixed_string_t ddp; + cmdline_fixed_string_t get; cmdline_fixed_string_t list; uint8_t port_id; }; -cmdline_parse_token_string_t cmd_get_ddp_list_get = - TOKEN_STRING_INITIALIZER(struct cmd_get_ddp_list_result, get, "get"); cmdline_parse_token_string_t cmd_get_ddp_list_ddp = TOKEN_STRING_INITIALIZER(struct cmd_get_ddp_list_result, ddp, "ddp"); +cmdline_parse_token_string_t cmd_get_ddp_list_get = + TOKEN_STRING_INITIALIZER(struct cmd_get_ddp_list_result, get, "get"); cmdline_parse_token_string_t cmd_get_ddp_list_list = TOKEN_STRING_INITIALIZER(struct cmd_get_ddp_list_result, list, "list"); cmdline_parse_token_num_t cmd_get_ddp_list_port_id = @@ -12893,10 +12893,10 @@ cmd_get_ddp_list_parsed( cmdline_parse_inst_t cmd_get_ddp_list = { .f = cmd_get_ddp_list_parsed, .data = NULL, - .help_str = "get ddp list <port_id>", + .help_str = "ddp get list <port_id>", .tokens = { - (void *)&cmd_get_ddp_list_get, (void *)&cmd_get_ddp_list_ddp, + (void *)&cmd_get_ddp_list_get, (void *)&cmd_get_ddp_list_list, (void *)&cmd_get_ddp_list_port_id, NULL, -- 2.5.5