numam-dpdk/examples/ioat
Ciara Power 2582bb980d examples/ioat: fix invalid link status check
The return value of the get link function call was not checked, and
could return a negative value indicating a failure. This meant the
link_status of the link being checked is invalid, because the link was
not filled with data. The return value is now checked, and if the return
value is not 0 for success, the loop continues with the next port.

To avoid confusion between variable names, the existing retval variable
is renamed to link_status, to better represent its use.

Coverity issue: 350348
Fixes: c8e6ceeceb ("examples/ioat: add new sample app for ioat driver")
Cc: stable@dpdk.org

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2020-02-13 14:43:56 +01:00
..
ioatfwd.c examples/ioat: fix invalid link status check 2020-02-13 14:43:56 +01:00
Makefile examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
meson.build examples/ioat: add new sample app for ioat driver 2019-10-27 17:57:41 +01:00