From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B5E935961 for ; Wed, 18 Jun 2014 22:33:07 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 18 Jun 2014 13:28:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,502,1400050800"; d="scan'208";a="559755179" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 18 Jun 2014 13:33:21 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s5IKXLeP013681; Wed, 18 Jun 2014 21:33:21 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s5IKXKCW027761; Wed, 18 Jun 2014 21:33:20 +0100 Received: (from bricha3@localhost) by sivswdev02.ir.intel.com with id s5IKXKCd027757; Wed, 18 Jun 2014 21:33:20 +0100 From: Bruce Richardson To: dev@dpdk.org Date: Wed, 18 Jun 2014 21:33:04 +0100 Message-Id: <1403123587-27433-2-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1403123587-27433-1-git-send-email-bruce.richardson@intel.com> References: <1403123587-27433-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 1/4] testpmd: fix commandline variable types X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2014 20:33:08 -0000 A number of commandline entries in the testpmd commandline were actually defined as being string type values when in fact they were being initialized as integer types. Correct this by specifying them as integer type values in the type definition. Signed-off-by: Bruce Richardson --- app/test-pmd/cmdline.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index e3e51fc..3298360 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -1367,7 +1367,7 @@ cmdline_parse_token_string_t cmd_config_rss_hash_key_port = cmdline_parse_token_string_t cmd_config_rss_hash_key_config = TOKEN_STRING_INITIALIZER(struct cmd_config_rss_hash_key, config, "config"); -cmdline_parse_token_string_t cmd_config_rss_hash_key_port_id = +cmdline_parse_token_num_t cmd_config_rss_hash_key_port_id = TOKEN_NUM_INITIALIZER(struct cmd_config_rss_hash_key, port_id, UINT8); cmdline_parse_token_string_t cmd_config_rss_hash_key_rss_hash_key = TOKEN_STRING_INITIALIZER(struct cmd_config_rss_hash_key, @@ -5367,7 +5367,7 @@ cmdline_parse_token_string_t cmd_mirror_mask_set = cmdline_parse_token_string_t cmd_mirror_mask_port = TOKEN_STRING_INITIALIZER(struct cmd_set_mirror_mask_result, port, "port"); -cmdline_parse_token_string_t cmd_mirror_mask_portid = +cmdline_parse_token_num_t cmd_mirror_mask_portid = TOKEN_NUM_INITIALIZER(struct cmd_set_mirror_mask_result, port_id, UINT8); cmdline_parse_token_string_t cmd_mirror_mask_mirror = @@ -5477,7 +5477,7 @@ cmdline_parse_token_string_t cmd_mirror_link_set = cmdline_parse_token_string_t cmd_mirror_link_port = TOKEN_STRING_INITIALIZER(struct cmd_set_mirror_link_result, port, "port"); -cmdline_parse_token_string_t cmd_mirror_link_portid = +cmdline_parse_token_num_t cmd_mirror_link_portid = TOKEN_NUM_INITIALIZER(struct cmd_set_mirror_link_result, port_id, UINT8); cmdline_parse_token_string_t cmd_mirror_link_mirror = @@ -5563,7 +5563,7 @@ cmdline_parse_token_string_t cmd_rm_mirror_rule_reset = cmdline_parse_token_string_t cmd_rm_mirror_rule_port = TOKEN_STRING_INITIALIZER(struct cmd_rm_mirror_rule_result, port, "port"); -cmdline_parse_token_string_t cmd_rm_mirror_rule_portid = +cmdline_parse_token_num_t cmd_rm_mirror_rule_portid = TOKEN_NUM_INITIALIZER(struct cmd_rm_mirror_rule_result, port_id, UINT8); cmdline_parse_token_string_t cmd_rm_mirror_rule_mirror = @@ -5872,7 +5872,7 @@ cmd_set_syn_filter_parsed(void *parsed_result, printf("syn filter setting error: (%s)\n", strerror(-ret)); } -cmdline_parse_token_string_t cmd_syn_filter_portid = +cmdline_parse_token_num_t cmd_syn_filter_portid = TOKEN_NUM_INITIALIZER(struct cmd_set_syn_filter_result, port_id, UINT8); cmdline_parse_token_string_t cmd_syn_filter_priority = @@ -5990,7 +5990,7 @@ cmdline_parse_token_num_t cmd_2tuple_filter_port_id = cmdline_parse_token_string_t cmd_2tuple_filter_protocol = TOKEN_STRING_INITIALIZER(struct cmd_2tuple_filter_result, protocol, "protocol"); -cmdline_parse_token_string_t cmd_2tuple_filter_protocol_value = +cmdline_parse_token_num_t cmd_2tuple_filter_protocol_value = TOKEN_NUM_INITIALIZER(struct cmd_2tuple_filter_result, protocol_value, UINT8); cmdline_parse_token_num_t cmd_2tuple_filter_protocol_mask = @@ -6008,7 +6008,7 @@ cmdline_parse_token_num_t cmd_2tuple_filter_dst_port_mask = cmdline_parse_token_string_t cmd_2tuple_filter_flags = TOKEN_STRING_INITIALIZER(struct cmd_2tuple_filter_result, flags, "flags"); -cmdline_parse_token_string_t cmd_2tuple_filter_flags_value = +cmdline_parse_token_num_t cmd_2tuple_filter_flags_value = TOKEN_NUM_INITIALIZER(struct cmd_2tuple_filter_result, flags_value, UINT8); cmdline_parse_token_string_t cmd_2tuple_filter_priority = @@ -6202,7 +6202,7 @@ cmdline_parse_token_num_t cmd_5tuple_filter_src_port_value = cmdline_parse_token_string_t cmd_5tuple_filter_protocol = TOKEN_STRING_INITIALIZER(struct cmd_5tuple_filter_result, protocol, "protocol"); -cmdline_parse_token_string_t cmd_5tuple_filter_protocol_value = +cmdline_parse_token_num_t cmd_5tuple_filter_protocol_value = TOKEN_NUM_INITIALIZER(struct cmd_5tuple_filter_result, protocol_value, UINT8); cmdline_parse_token_string_t cmd_5tuple_filter_mask = @@ -6448,7 +6448,7 @@ cmdline_parse_token_num_t cmd_flex_filter_port_id = cmdline_parse_token_string_t cmd_flex_filter_len = TOKEN_STRING_INITIALIZER(struct cmd_flex_filter_result, len, "len"); -cmdline_parse_token_string_t cmd_flex_filter_len_value = +cmdline_parse_token_num_t cmd_flex_filter_len_value = TOKEN_NUM_INITIALIZER(struct cmd_flex_filter_result, len_value, UINT8); cmdline_parse_token_string_t cmd_flex_filter_bytes = -- 1.9.3