From patchwork Sat Apr 1 06:56:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xing, Beilei" X-Patchwork-Id: 23098 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id F369B2C31; Sat, 1 Apr 2017 08:57:38 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 351222B92 for ; Sat, 1 Apr 2017 08:57:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491029855; x=1522565855; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=4s5XYgr0dEJUXVgnCV/jaUatswyjsxfyOCBPgEc363Q=; b=gPLnYI0yFHn0/E0/nTu05fwWomvu/HlIbOGamtBSpQUIHyBXGNTBe2f7 laJ91OC/G+sUhCPU1KIsdUQoyvf7Kg==; Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Mar 2017 23:57:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,256,1486454400"; d="scan'208";a="83396363" Received: from unknown (HELO dpdk9.sh.intel.com) ([10.239.129.31]) by fmsmga006.fm.intel.com with ESMTP; 31 Mar 2017 23:57:33 -0700 From: Beilei Xing To: jingjing.wu@intel.com Cc: dev@dpdk.org Date: Sat, 1 Apr 2017 14:56:29 +0800 Message-Id: <1491029789-41143-3-git-send-email-beilei.xing@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1491029789-41143-1-git-send-email-beilei.xing@intel.com> References: <1491029789-41143-1-git-send-email-beilei.xing@intel.com> Subject: [dpdk-dev] [PATCH 2/2] app/testpmd: change command line of getting profile info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 ", + .help_str = "ddp get list ", .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,