[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1332859171.10620.0.camel@edumazet-laptop>
Date: Tue, 27 Mar 2012 07:39:31 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Davide Ciminaghi <ciminaghi@...dd.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Alexey Dobriyan <adobriyan@...il.com>,
Thomas Meyer <thomas@...3r.de>,
Wan ZongShun <mcuos.com@...il.com>,
Lucas De Marchi <lucas.demarchi@...fusion.mobi>,
netdev@...r.kernel.org, raffaele.recalcati@...cino.it
Subject: Re: [PATCH] net/ethernet: ks8851_mll fix rx frame buffer overflow
Le mardi 27 mars 2012 à 15:01 +0200, Davide Ciminaghi a écrit :
> If interrupts are disabled long enough to allow for more than
> 32 frames to accumulate in the MAC's internal buffers, a buffer
> overflow occurs. This patch fixes the problem by making the
> driver's frame_head_info buffer bigger enough.
>
> Signed-off-by: Davide Ciminaghi <ciminaghi@...dd.com>
> Signed-off-by: Raffaele Recalcati <raffaele.recalcati@...cino.it>
> ---
> drivers/net/ethernet/micrel/ks8851_mll.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c
> index 2784bc7..a158e89 100644
> --- a/drivers/net/ethernet/micrel/ks8851_mll.c
> +++ b/drivers/net/ethernet/micrel/ks8851_mll.c
> @@ -40,7 +40,7 @@
> #define DRV_NAME "ks8851_mll"
>
> static u8 KS_DEFAULT_MAC_ADDRESS[] = { 0x00, 0x10, 0xA1, 0x86, 0x95, 0x11 };
> -#define MAX_RECV_FRAMES 32
> +#define MAX_RECV_FRAMES 256
> #define MAX_BUF_SIZE 2048
> #define TX_BUF_SIZE 2000
> #define RX_BUF_SIZE 2000
How can this fix the problem for good ?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists