commit | ba57a6bf5161e238549c2d230a34f953749e1eec | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Wed Sep 25 17:45:34 2019 +0800 |
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | Fri Oct 25 17:20:44 2019 +0200 |
tree | a0bc174bf04cdc04926cfdbb78a1811a865e5a9f | |
parent | a5644119186eda088225588768c243886a944c39 [diff] |
net: mt7628-eth: free rx descriptor on receiving failure 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. Reviewed-by: Stefan Roese <sr@denx.de>