From: Yanglong Wu Date: Tue, 2 Jan 2018 05:35:42 +0000 (+0800) Subject: app/testpmd: fix port id allocation X-Git-Tag: spdx-start~756 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2c9808149cdf97313e54e1dcdebe251c010a3f7d;p=dpdk.git app/testpmd: fix port id allocation 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") Cc: stable@dpdk.org Signed-off-by: Yanglong Wu Reviewed-by: Zhiyong Yang Acked-by: Wenzhuo Lu --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f71d963019..8990ebf6b6 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,