numam-dpdk/drivers/net/failsafe
Matan Azrad 852be6520b net/failsafe: fix parameters parsing
The corrupted code used wrongly snprintf return value as the
number of characters actually copied, in spite of the meaning
is the number of characters which would be generated for the
given input.

It caused to remain zerod bytes between the failsafe command line
non sub device parameters indicates end of string.

Hence, when rte_kvargs_parse tried to parse all parameters, it
got end of string after the first one and the others weren't parsed.

So, if the mac parameters was the first in command line it was
taken while hotplug_poll was left default, and vice versa.

The fix updates the buffer index by dedicated variable contains
the copy size, by the way validates the comma separation.

Fixes: a46f8d584e ("net/failsafe: add fail-safe PMD")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2017-10-06 02:49:47 +02:00
..
failsafe_args.c net/failsafe: fix parameters parsing 2017-10-06 02:49:47 +02:00
failsafe_eal.c net/failsafe: support device removal 2017-07-19 16:25:43 +03:00
failsafe_ether.c net/failsafe: support flow API isolation mode 2017-07-19 16:25:43 +03:00
failsafe_flow.c net/failsafe: support flow API isolation mode 2017-07-19 16:25:43 +03:00
failsafe_ops.c net/failsafe: support link status change event 2017-07-19 16:25:43 +03:00
failsafe_private.h net/failsafe: safer subdev iterator 2017-10-06 02:49:47 +02:00
failsafe_rxtx.c net/failsafe: support device removal 2017-07-19 16:25:43 +03:00
failsafe.c net/failsafe: support link status change event 2017-07-19 16:25:43 +03:00
Makefile net/failsafe: fix build on FreeBSD 10 with GCC 4.8 2017-07-20 18:30:20 +03:00
rte_pmd_failsafe_version.map net/failsafe: add fail-safe PMD 2017-07-19 16:25:42 +03:00