]> err.no Git - linux-2.6/commitdiff
sky2: jumbo frame regression fix
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 3 Oct 2007 01:02:09 +0000 (18:02 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 3 Oct 2007 17:39:42 +0000 (13:39 -0400)
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 <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c

index 162489b9f5990b9ea2093ff5afc3c8b936c8abc1..ea117fc3d5e390c6da6b763a61f6d94a071c3c86 100644 (file)
@@ -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.