From: Yoshihiro Shimoda Date: Mon, 6 Feb 2012 23:55:15 +0000 (+0000) Subject: net: sh_eth: fix skb_over_panic happen X-Git-Tag: v3.3-rc4~34^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdb37a7f84a58ccad24abffd54ad46d23b763e13;p=pandora-kernel.git net: sh_eth: fix skb_over_panic happen 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 Cc: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed