[PATCH] via-velocity: use NETIF_F_IP_CSUM (hardware only support IPv4)
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 9 Dec 2005 15:36:09 +0000 (10:36 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 12 Jan 2006 21:39:45 +0000 (16:39 -0500)
At least some versions of the via-velocity hardware only support
checksumming IPv4 frames in hardware.  However, the driver is currently
setting the NETIF_F_HW_CSUM flag, which indicates support for more than
just IPv4.  This results in errors when trying to use IPv6 over
via-velocity hardware.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/via-velocity.c

index 82c6b757d30664e0ae7cf106fa36a6dd4411dfc3..c2d5907dc8e054edd6ecab18bdc954cfbfd1554b 100644 (file)
@@ -791,7 +791,7 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
 #endif
 
        if (vptr->flags & VELOCITY_FLAGS_TX_CSUM) {
-               dev->features |= NETIF_F_HW_CSUM;
+               dev->features |= NETIF_F_IP_CSUM;
        }
 
        ret = register_netdev(dev);