Re: [dpdk-dev] [PATCH 1/1] ethdev: fix handling of close failure

2021-01-25 Thread Burakov, Anatoly
On 22-Jan-21 5:58 PM, Thomas Monjalon wrote: If a failure happens when closing a port, it was unnecessarily failing again in the function eth_err(), because of a check against HW removal cause. Indeed there is a big chance the port is released at this point. Given the port is in the middle (or at

Re: [dpdk-dev] [PATCH 1/1] ethdev: fix handling of close failure

2021-01-25 Thread Andrew Rybchenko
On 1/22/21 8:58 PM, Thomas Monjalon wrote: > If a failure happens when closing a port, > it was unnecessarily failing again in the function eth_err(), > because of a check against HW removal cause. > Indeed there is a big chance the port is released at this point. > Given the port is in the middle

[dpdk-dev] [PATCH 1/1] ethdev: fix handling of close failure

2021-01-22 Thread Thomas Monjalon
If a failure happens when closing a port, it was unnecessarily failing again in the function eth_err(), because of a check against HW removal cause. Indeed there is a big chance the port is released at this point. Given the port is in the middle (or at the end) of a close process, checking the erro