Re: [PATCH] net: sh_eth: Fix RX error handling

2023-04-30 Thread Ramon Fried
On Sun, Apr 30, 2023 at 5:54 PM Marek Vasut wrote: > > From: Valentine Barshak > > In case RX error occurs, and the RD_RFE bit is set, the descriptor > is never returned back to the queue. Make sh_eth_recv_start return > zero length in this case so that the descriptor can be released > and pushed

[PATCH] net: sh_eth: Fix RX error handling

2023-04-30 Thread Marek Vasut
From: Valentine Barshak In case RX error occurs, and the RD_RFE bit is set, the descriptor is never returned back to the queue. Make sh_eth_recv_start return zero length in this case so that the descriptor can be released and pushed back to the list. Also return the more appropriate -EAGAIN inste