Dear Marek,

> From: Marek Vasut <[email protected]>
> Sent: lundi 23 mars 2020 02:45
> 
> This code programs the next descriptor in the TX descriptor ring into the 
> hardware
> as the last valid TX descriptor. The problem is that if the currenty 
> descriptor is the
> last one in the array, the code will not wrap around correctly and use TX
> descriptor 0 again, but instead will use TX descriptor at address right past 
> the TX
> descriptor ring, which is the first descriptor in the RX ring.
> 
> Fix this by adding the necessary wrap-around.
> 
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Joe Hershberger <[email protected]>
> Cc: Patrice Chotard <[email protected]>
> Cc: Patrick Delaunay <[email protected]>
> Cc: Ramon Fried <[email protected]>
> Cc: Stephen Warren <[email protected]>
> ---

Reviewed-by: Patrick Delaunay <[email protected]>

Thanks

Patrick

Reply via email to