numam-dpdk/examples/performance-thread
Sarosh Arif ce6b8c3154 examples: fix port mask parsing failure handling
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 portmask causes an unexpected behaviour.
If we return 0 instead of -1 this issue can be resolved.
The program already contains the functionality to print
"invalid portmask" and program usage if zero is returned.

Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2020-07-30 23:24:40 +02:00
..
common doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
l3fwd-thread examples: fix port mask parsing failure handling 2020-07-30 23:24:40 +02:00
pthread_shim introduce restricted pointer aliasing marker 2020-07-10 15:35:32 +02:00
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00