From: Stephen Hemminger Date: Wed, 3 Oct 2007 01:02:09 +0000 (-0700) Subject: sky2: jumbo frame regression fix X-Git-Tag: Ubuntu-5.0.0-8.9~39669^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=529d303e075aa6d988f30935b8995ffb382ad38e;p=mirror_ubuntu-disco-kernel.git sky2: jumbo frame regression fix Remove unneeded check that caused problems with jumbo frame sizes. The check was recently added and is wrong. When using jumbo frames the sky2 driver does fragmentation, so rx_data_size is less than mtu. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 162489b9f599..ea117fc3d5e3 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -2163,9 +2163,6 @@ static struct sk_buff *sky2_receive(struct net_device *dev, sky2->rx_next = (sky2->rx_next + 1) % sky2->rx_pending; prefetch(sky2->rx_ring + sky2->rx_next); - if (length < ETH_ZLEN || length > sky2->rx_data_size) - goto len_error; - /* This chip has hardware problems that generates bogus status. * So do only marginal checking and expect higher level protocols * to handle crap frames.