numam-dpdk/examples/l3fwd
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
..
l3fwd_altivec.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_common.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_em_hlm_neon.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_em_hlm_sse.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_em_hlm.h examples/l3fwd: add event em main loop 2020-01-28 10:05:19 +01:00
l3fwd_em_sequential.h examples/l3fwd: add event em main loop 2020-01-28 10:05:19 +01:00
l3fwd_em.c replace unused attributes 2020-04-16 18:30:58 +02:00
l3fwd_em.h examples/l3fwd: add event em main loop 2020-01-28 10:05:19 +01:00
l3fwd_event_generic.c examples/l3fwd: fix error checking 2020-05-01 19:37:17 +02:00
l3fwd_event_internal_port.c examples/l3fwd: fix error checking 2020-05-01 19:37:17 +02:00
l3fwd_event.c examples/l3fwd: fix error checking 2020-05-01 19:37:17 +02:00
l3fwd_event.h examples/l3fwd: add event lpm main loop 2020-01-28 10:05:16 +01:00
l3fwd_lpm_altivec.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_lpm_neon.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_lpm_sse.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_lpm.c replace unused attributes 2020-04-16 18:30:58 +02:00
l3fwd_lpm.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_neon.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd_sse.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
l3fwd.h replace unused attributes 2020-04-16 18:30:58 +02: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