Re: [dpdk-dev] [PATCH] examples/ioat: fix unchecked return value

2020-02-05 Thread David Marchand
On Tue, Feb 4, 2020 at 5:13 PM Ciara Power wrote: > > The function call to get the device info can return negative values on > failure, which was previously unchecked. This return value is now > checked and the function exits on failure. > > Coverity issue: 350361 > Fixes: c8e6ceecebc1 ("examples/

[dpdk-dev] [PATCH] examples/ioat: fix unchecked return value

2020-02-04 Thread Ciara Power
The function call to get the device info can return negative values on failure, which was previously unchecked. This return value is now checked and the function exits on failure. Coverity issue: 350361 Fixes: c8e6ceecebc1 ("examples/ioat: add new sample app for ioat driver") Cc: pawelx.mod...@int

[dpdk-dev] [PATCH] examples/ioat: fix unchecked return value

2020-02-04 Thread Ciara Power
The return value of the get link function call was not checked, and could return a negative value indicating a failure. If the return value is not 0 for success, the loop continues with the next port. To avoid a slight name clash with the new ret variable, the existing retval variable is renamed t