Re: [dpdk-dev] [PATCH] examples: fix return value of function that parses portmask

2020-07-30 Thread Thomas Monjalon
21/07/2020 18:07, Bruce Richardson: > On Thu, Jun 11, 2020 at 05:36:24PM +0500, Sarosh Arif wrote: > > Giving invalid or zero portmask as command line option to > > these applications will have an unexpected response. > > The reason behind this is that the return value of function > > that parses

Re: [dpdk-dev] [PATCH] examples: fix return value of function that parses portmask

2020-07-21 Thread Bruce Richardson
On Thu, Jun 11, 2020 at 05:36:24PM +0500, Sarosh Arif wrote: > Giving invalid or zero portmask as command line option to > these applications will have an unexpected response. > The reason behind this is that the return value of function > that parses portmask is stored in a variable whose datatyp

[dpdk-dev] [PATCH] examples: fix return value of function that parses portmask

2020-06-11 Thread Sarosh Arif
Giving invalid or zero portmask as command line option to these applications will have an unexpected response. The reason behind this is that the return value of function that parses portmask is stored in a variable whose datatype is unsigned int, hence returning -1 in case of zero or invalid por