numam-dpdk/examples/l2fwd-event
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
..
l2fwd_common.c examples/l2fwd-event: fix ethdev RSS setup 2020-01-14 21:37:51 +01:00
l2fwd_common.h examples/l2fwd-event: add option to configure port pairs 2020-04-04 18:09:51 +02:00
l2fwd_event_generic.c examples/l2fwd-event: fix error checking 2020-02-15 08:04:46 +01:00
l2fwd_event_internal_port.c examples/l2fwd-event: fix error checking 2020-02-15 08:04:46 +01:00
l2fwd_event.c examples/l2fwd-event: fix event device config 2020-01-14 20:20:15 +01:00
l2fwd_event.h examples/l2fwd-event: add eventdev main loop 2019-11-04 18:09:30 +01:00
l2fwd_poll.c examples/l2fwd-event: fix core allocation in poll mode 2020-02-15 09:07:34 +01:00
l2fwd_poll.h examples/l2fwd-event: add default poll mode routines 2019-11-04 18:07:43 +01:00
main.c examples: fix port mask parsing failure handling 2020-07-30 23:24:40 +02:00
Makefile build/pkg-config: improve static linking flags 2020-07-01 19:30:52 +02:00
meson.build ethdev: add tracepoints 2020-04-23 15:40:06 +02:00