[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120207.133806.473035154885048767.davem@davemloft.net>
Date: Tue, 07 Feb 2012 13:38:06 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: yoshihiro.shimoda.uh@...esas.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
nobuhiro.iwamatsu.yj@...esas.com
Subject: Re: [PATCH v2] net: sh_eth: fix skb_over_panic happen
From: "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@...esas.com>
Date: Tue, 07 Feb 2012 18:55:15 +0900
> When this GETHER controller received a large frame (about 1800 bytes
> or more), skb_over_panic() happened. This is because the previous
> driver set the RFLR to 0x1000 (4096 bytes) and the skb allocate size
> is smaller than 4096 bytes. So, the controller accepted such a frame.
>
> The controller can discard a large frame by the RFLR setting.
> So, the patch modifies the value of RFLR to mtu + ETH_HLEN +
> VLAN_HLEN + ETH_FCS_LEN.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
> Cc: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks.
--
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