Re: [dpdk-dev] [PATCH v2] examples/ioat: fix invalid link status check

2020-02-13 Thread David Marchand
On Fri, Feb 7, 2020 at 11:34 AM Ciara Power wrote: > > 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 retur

Re: [dpdk-dev] [PATCH v2] examples/ioat: fix invalid link status check

2020-02-13 Thread Bruce Richardson
On Fri, Feb 07, 2020 at 10:24:02AM +, Ciara Power wrote: > 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. Th

[dpdk-dev] [PATCH v2] examples/ioat: fix invalid link status check

2020-02-07 Thread Ciara Power
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 s