]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mvneta - Fixed recv() when multiple packets have arrived.
authorJason Brown <jason.brown@apcon.com>
Tue, 28 Nov 2017 19:12:43 +0000 (11:12 -0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jan 2018 18:05:19 +0000 (12:05 -0600)
commit32ac8b0bba72684281a079a8e23832efabd97e09
tree6f0ba7229e2faeb9a9f4cddfc3834da146564673
parent33bab1045773dea9f1bac24569a7f4e29072fd20
net: mvneta - Fixed recv() when multiple packets have arrived.

This patch fixes a problem in the mvneta driver where if more than
one packet arrives between calls to mvneta_recv(), the additional
descriptors will be marked as free even though only one descriptor
has been read and processed from the receive queue.  This causes
the additional packet(s) to be delayed until the next packet arrives.
>From this point on all packets will be delayed because the receive
queue will contain unprocessed packets but the hardware shows no
busy descriptors.

Signed-off-by: Jason Brown <jason.brown@apcon.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvneta.c