aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb_main.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-02-06 18:18:27 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-07 05:43:07 -0500
commit7d8eb29e6eae9cc13e1975daf28d2ae789c1f110 (patch)
tree4b04b15107a271927cd77b304cde2f03819ae967 /drivers/net/igb/igb_main.c
parent0fbe67af3ee1928f7eae273133b7112d1665d4d3 (diff)
igb: update feature flags supported in ethtool
This driver is currently using HW_CSUM which is not correct. Update this to use the IP_CSUM and IPV6_CSUM flags. In addition consolidate the TSO flag setting. 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>
Diffstat (limited to 'drivers/net/igb/igb_main.c')
-rw-r--r--drivers/net/igb/igb_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index e3a3582fec90..8c27e0a23dff 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1158,11 +1158,12 @@ static int __devinit igb_probe(struct pci_dev *pdev,
1158 "PHY reset is blocked due to SOL/IDER session.\n"); 1158 "PHY reset is blocked due to SOL/IDER session.\n");
1159 1159
1160 netdev->features = NETIF_F_SG | 1160 netdev->features = NETIF_F_SG |
1161 NETIF_F_HW_CSUM | 1161 NETIF_F_IP_CSUM |
1162 NETIF_F_HW_VLAN_TX | 1162 NETIF_F_HW_VLAN_TX |
1163 NETIF_F_HW_VLAN_RX | 1163 NETIF_F_HW_VLAN_RX |
1164 NETIF_F_HW_VLAN_FILTER; 1164 NETIF_F_HW_VLAN_FILTER;
1165 1165
1166 netdev->features |= NETIF_F_IPV6_CSUM;
1166 netdev->features |= NETIF_F_TSO; 1167 netdev->features |= NETIF_F_TSO;
1167 netdev->features |= NETIF_F_TSO6; 1168 netdev->features |= NETIF_F_TSO6;
1168 1169
@@ -1172,7 +1173,7 @@ static int __devinit igb_probe(struct pci_dev *pdev,
1172 1173
1173 netdev->vlan_features |= NETIF_F_TSO; 1174 netdev->vlan_features |= NETIF_F_TSO;
1174 netdev->vlan_features |= NETIF_F_TSO6; 1175 netdev->vlan_features |= NETIF_F_TSO6;
1175 netdev->vlan_features |= NETIF_F_HW_CSUM; 1176 netdev->vlan_features |= NETIF_F_IP_CSUM;
1176 netdev->vlan_features |= NETIF_F_SG; 1177 netdev->vlan_features |= NETIF_F_SG;
1177 1178
1178 if (pci_using_dac) 1179 if (pci_using_dac)