From: Remy Horton Date: Fri, 19 Jan 2018 13:27:22 +0000 (+0000) Subject: app/testpmd: fix port id size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4c492ebb21c3a43cd85c5e4af9f592a15c02d794;p=dpdk.git app/testpmd: fix port id size The word size of port_id is now 16 bits, but there were parsing directives that assumed it was still of type UINT8, resulting in incorrect commandline parse results. Fixes: f14a210a65fe ("app: fix port id type") Cc: stable@dpdk.org Signed-off-by: Remy Horton Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index a2db9b7a66..6b427025c8 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -5837,7 +5837,7 @@ cmdline_parse_token_string_t cmd_setpromisc_portall = "all"); cmdline_parse_token_num_t cmd_setpromisc_portnum = TOKEN_NUM_INITIALIZER(struct cmd_set_promisc_mode_result, port_num, - UINT8); + UINT16); cmdline_parse_token_string_t cmd_setpromisc_mode = TOKEN_STRING_INITIALIZER(struct cmd_set_promisc_mode_result, mode, "on#off");