igb/ixgbe: add IPV6_CSUM support to vlan_features
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 25 Aug 2009 04:47:50 +0000 (04:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2009 22:36:50 +0000 (15:36 -0700)
We were already exporting TSO6 to the vlan, but we weren't exporting the
checksum support for IPV6 which was causing warning messages to be
displayed when doing IPv6 TSO over a vlan.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c
drivers/net/ixgbe/ixgbe_main.c

index fb3273517587ff7b7a66113da6747a9c42b7a430..cef4289d5716fa1abebd777fc51bc2c307fa668a 100644 (file)
@@ -1380,6 +1380,7 @@ static int __devinit igb_probe(struct pci_dev *pdev,
        netdev->vlan_features |= NETIF_F_TSO;
        netdev->vlan_features |= NETIF_F_TSO6;
        netdev->vlan_features |= NETIF_F_IP_CSUM;
+       netdev->vlan_features |= NETIF_F_IPV6_CSUM;
        netdev->vlan_features |= NETIF_F_SG;
 
        if (pci_using_dac)
index 3f1770690bf0f19a86a7eafd8ed774b76f234e74..0bea096e964b8f2b1fcf6cb1433ee885010f9fa8 100644 (file)
@@ -5575,6 +5575,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
        netdev->vlan_features |= NETIF_F_TSO;
        netdev->vlan_features |= NETIF_F_TSO6;
        netdev->vlan_features |= NETIF_F_IP_CSUM;
+       netdev->vlan_features |= NETIF_F_IPV6_CSUM;
        netdev->vlan_features |= NETIF_F_SG;
 
        if (adapter->flags & IXGBE_FLAG_DCB_ENABLED)