app/testpmd: fix return of port list parser
authorHariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Thu, 20 Feb 2020 17:39:03 +0000 (17:39 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Feb 2020 10:41:21 +0000 (11:41 +0100)
commit7eeda4d55af439495e7463f94cd30bfa39bd39d5
tree41aac2c5567342d8d7f10ecdaa3f978dd3c60528
parent35594a9b6f96ac6e45bbb851d9180c841c35cfff
app/testpmd: fix return of port list parser

The function parse_port_list() is designed to return
unsigned int value. After sanitizing the inputs,
it is returning -1. Changed it to return 0.

Fixes: 2df00d562d20 ("app/testpmd: add --portlist option")

Signed-off-by: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/config.c