numam-dpdk/drivers/net/failsafe
Gaetan Rivet 79da7b914d net/failsafe: fix blank line parsing
When the output of an exec() slave definition is only a single newline
character, the fail-safe currently fails to parse the device with the
value returned by the rte_devargs library.

This behavior is incorrect, because the fail-safe should make a
difference between the absence of a device, and an erroneous device
declaration.

Fix the output sanitization in the case where no newline was at its end
and detect the special case of an absent device. The correct error code
is then returned.

Fixes: a0194d8281 ("net/failsafe: add flexible device definition")

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2017-08-03 22:36:01 +02:00
..
failsafe_args.c net/failsafe: fix blank line parsing 2017-08-03 22:36:01 +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: support flow API isolation mode 2017-07-19 16:25:43 +03: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