net: ks8851: Receive one packet per recv call
authorMarek Vasut <marex@denx.de>
Wed, 25 Mar 2020 17:47:10 +0000 (18:47 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 22 May 2020 17:46:45 +0000 (19:46 +0200)
commit9c9f3fc162ecbe1295ddf249e288a5a4739f5e07
tree8f6838c4cf90aa5ac9be2dfc0395bb5eed0c767e
parentf725912624878faf7c552dd686425e0e14e75a8b
net: ks8851: Receive one packet per recv call

Instead of reading out the entire FIFO and possibly overwriting U-Boot
memory, read out one packet per recv call, pass it to U-Boot network
stack, and repeat. It is however necessary to cache RXFC value, because
reading that one out clears it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ks8851_mll.c