dpdk-fm10k/examples/vm_power_manager
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
..
guest_cli replace unused attributes 2020-04-16 18:30:58 +02:00
channel_manager.c examples/vm_power: drop Unix path limit redefinition 2020-05-21 15:41:49 +02:00
channel_manager.h examples/vm_power: drop Unix path limit redefinition 2020-05-21 15:41:49 +02:00
channel_monitor.c examples/power: fix ack for enable/disable turbo 2020-02-13 18:22:19 +01:00
channel_monitor.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
main.c examples: fix port mask parsing failure handling 2020-07-30 23:24:40 +02:00
Makefile ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
meson.build ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
oob_monitor.h examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
oob_monitor_nop.c examples/vm_power_manager: fix build 2020-04-17 23:22:15 +02:00
oob_monitor_x86.c examples/vm_power: allow managing idle cores 2020-07-17 14:40:56 +02:00
parse.c examples/vm_power: make branch ratio threshold per core 2020-07-17 14:40:56 +02:00
parse.h examples/vm_power: make branch ratio threshold per core 2020-07-17 14:40:56 +02:00
power_manager.c examples/vm_power: make branch ratio threshold per core 2020-07-17 14:40:56 +02:00
power_manager.h examples/vm_power: make branch ratio threshold per core 2020-07-17 14:40:56 +02:00
vm_power_cli.c replace unused attributes 2020-04-16 18:30:58 +02:00
vm_power_cli.h replace unused attributes 2020-04-16 18:30:58 +02:00