]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] 3c59x: don't enable scatter/gather w/o checksum support
authorStephen Hemminger <shemminger@osdl.org>
Mon, 7 Nov 2005 08:58:09 +0000 (00:58 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:25 +0000 (07:53 -0800)
It is not valid to enable scatter/gather without hardware checksum support
of some kind. (akpm: applies only to the old boomerang cards).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/3c59x.c

index c1ee8efc9d56a82260e150e6562d680a3818196c..7488ee7f7cafa1075c6079b0f20081a614eeccb0 100644 (file)
@@ -1536,11 +1536,10 @@ static int __devinit vortex_probe1(struct device *gendev,
        if (vp->full_bus_master_tx) {
                dev->hard_start_xmit = boomerang_start_xmit;
                /* Actually, it still should work with iommu. */
-               dev->features |= NETIF_F_SG;
                if (card_idx < MAX_UNITS &&
                    ((hw_checksums[card_idx] == -1 && (vp->drv_flags & HAS_HWCKSM)) ||
                                hw_checksums[card_idx] == 1)) {
-                       dev->features |= NETIF_F_IP_CSUM;
+                       dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
                }
        } else {
                dev->hard_start_xmit = vortex_start_xmit;