]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dm9000: Receive one packet per recv call
authorMarek Vasut <marex@denx.de>
Wed, 13 Apr 2022 02:15:36 +0000 (04:15 +0200)
committerRamon Fried <ramon@neureality.ai>
Wed, 13 Apr 2022 12:13:54 +0000 (15:13 +0300)
commit84bf20f6ce8beb014bb77eab00cd96fe2fbfd689
tree27ed6c419ad8eeb1c578d9bac48b5a7a545ce5ea
parent85a72601863570c6c455ccaaa098fbd03af3ecd8
net: dm9000: 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.

Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dm9000x.c