Subject: Re: [PATCH] enc28j60: Fix sporadic packet loss

From: Claudio Lanconelli <[email-masked]>
Date: Tue, 02 Dec 2008 15:11:26 +0100

Baruch Siach wrote:
> +/*
> + * Calculate wrap arround when reading beyond the end of the RX buffer
                      ^
> + */
> +static u16 rx_packet_start(u16 ptr)
> +{
> +	if (ptr + RSV_SIZE > RXEND_INIT)
> +		return (ptr + RSV_SIZE) - (RXEND_INIT - RXSTART_INIT + 1);
> +	else
> +		return ptr;
> +}

should be
...
	else
		return ptr + RSV_SIZE;

With this change you can add the line
Acked-by: Claudio Lanconelli <[email-masked]>

Cheers,
Claudio