From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yanglong.wu@intel.com>
Received: from mga14.intel.com (mga14.intel.com [192.55.52.115])
 by dpdk.org (Postfix) with ESMTP id 09CC22904
 for <dev@dpdk.org>; Tue,  2 Jan 2018 06:36:29 +0100 (CET)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga007.fm.intel.com ([10.253.24.52])
 by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 01 Jan 2018 21:36:28 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.45,495,1508828400"; 
   d="scan'208";a="6600856"
Received: from wuyanglong.sh.intel.com ([10.67.111.98])
 by fmsmga007.fm.intel.com with ESMTP; 01 Jan 2018 21:36:27 -0800
From: Yanglong Wu <yanglong.wu@intel.com>
To: dev@dpdk.org
Cc: zhiyong.yang@intel.com,
	Yanglong Wu <yanglong.wu@intel.com>
Date: Tue,  2 Jan 2018 13:35:42 +0800
Message-Id: <20180102053542.128402-1-yanglong.wu@intel.com>
X-Mailer: git-send-email 2.11.0
In-Reply-To: <20171222074807.122265-1-yanglong.wu@intel.com>
References: <20171222074807.122265-1-yanglong.wu@intel.com>
Subject: [dpdk-dev] [PATCH v3] app/testpmd: fix port_id alloction issue
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Jan 2018 05:36:30 -0000

In the feature of increasing port_id range from 8 bits to 16 bits,
vlan port_id allocation function was forget to substitute UINT8 with
UINT16, so the vlan port_id was allocated as a inccrete number.

Fixes:28caa76aea71 ("app/testpmd: fix port id type")

Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
Reviewed-by: Zhiyong Yang <zhiyong.yang@intel.com>
---
v2:
modified commit message
---
v3:
add review tag
---
 app/test-pmd/cmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index f71d96301..8990ebf6b 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -3352,7 +3352,7 @@ cmdline_parse_token_num_t cmd_vlan_tpid_tpid =
 			      tp_id, UINT16);
 cmdline_parse_token_num_t cmd_vlan_tpid_portid =
 	TOKEN_NUM_INITIALIZER(struct cmd_vlan_tpid_result,
-			      port_id, UINT8);
+			      port_id, UINT16);
 
 cmdline_parse_inst_t cmd_vlan_tpid = {
 	.f = cmd_vlan_tpid_parsed,
-- 
2.11.0