app/testpmd: fix port id allocation
authorYanglong Wu <yanglong.wu@intel.com>
Tue, 2 Jan 2018 05:35:42 +0000 (13:35 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 9 Jan 2018 23:26:15 +0000 (00:26 +0100)
commit2c9808149cdf97313e54e1dcdebe251c010a3f7d
treeb37d0b51202c5b73f79ef9d451a38c428cbe05e2
parentb45056be0429d6df2313e5e49aa8f78e5d840a97
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 <yanglong.wu@intel.com>
Reviewed-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
app/test-pmd/cmdline.c