[U-Boot] [PATCH 17/26] net: mt7628-eth: free rx descriptor on receiving failure

Stefan Roese sr at denx.de
Wed Aug 28 13:42:48 UTC 2019


On 28.08.19 08:38, Weijie Gao wrote:
> When received a packet with an invalid length recorded in rx descriptor,
> we should free this rx descriptor to allow us to continue to receive
> following packets.
> Without doing so, u-boot will stuck in a dead loop trying to process this
> invalid rx descriptor.
> 
> This patch adds a call to mt7628_eth_free_pkt() after received an invalid
> packet length.
> 
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>

Good catch.

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list