[U-Boot] [PATCH] api: net: fix length check in eth_receive()

Joe Hershberger joe.hershberger at gmail.com
Fri Sep 28 17:48:24 CEST 2012


Hi Michael,

On Mon, Jun 25, 2012 at 3:50 PM, Michael Walle <michael at walle.cc> wrote:
>
> [removed Piotr Kruszynski from CC because mail address does not exist anymore]
>
> Hi Joe,
>
> Am Montag 25 Juni 2012, 22:25:56 schrieb Joe Hershberger:
>> Hi Michael,
>>
>> On Fri, Jun 22, 2012 at 4:24 PM, Michael Walle <michael at walle.cc> wrote:
>> > If the requested length is too small to hold the received packet,
>> > eth_receive() will return -1 and will leave the packet in the receive
>> > buffers. Instead of returning an error in this case, we return the first
>> > portion of the received packet and remove it from the receive buffers.
>> >
>> > This fixes FreeBSD's ubldr. Without this patch it will just stop
>> > receiving packets if the NIC receives more than PKTBUFSRX too large
>> > packets.
>> >
>> > Signed-off-by: Michael Walle <michael at walle.cc>
>> > Cc: Joe Hershberger <joe.hershberger at gmail.com>
>> > Cc: Rafal Jaworowski <raj at semihalf.com>
>> > Cc: Piotr Kruszynski <ppk at semihalf.com>
>> > ---

Applied, thanks.

-Joe


More information about the U-Boot mailing list