diff options
author | Yi Zou <yi.zou@intel.com> | 2009-11-06 07:55:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-06 23:33:35 -0500 |
commit | b352e40da8977253f49850a24f6448653a459ac0 (patch) | |
tree | a7784d8b5aed047e6e3a078d7717db90c5edfba4 /drivers/net/ixgbe/ixgbe_main.c | |
parent | dcaa6a9414cdc767c0afba4705c25ae9cf6096b5 (diff) |
ixgbe: Fix gso_max_size for 82599 when DCB is enabled
The 32k gso_max_size when DCB is enabled is for 82598 only, not for 82599.
Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@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/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index cbb143ca1eb8..26fc1df2b2e0 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2471,7 +2471,10 @@ static void ixgbe_configure(struct ixgbe_adapter *adapter) | |||
2471 | ixgbe_restore_vlan(adapter); | 2471 | ixgbe_restore_vlan(adapter); |
2472 | #ifdef CONFIG_IXGBE_DCB | 2472 | #ifdef CONFIG_IXGBE_DCB |
2473 | if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { | 2473 | if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { |
2474 | netif_set_gso_max_size(netdev, 32768); | 2474 | if (hw->mac.type == ixgbe_mac_82598EB) |
2475 | netif_set_gso_max_size(netdev, 32768); | ||
2476 | else | ||
2477 | netif_set_gso_max_size(netdev, 65536); | ||
2475 | ixgbe_configure_dcb(adapter); | 2478 | ixgbe_configure_dcb(adapter); |
2476 | } else { | 2479 | } else { |
2477 | netif_set_gso_max_size(netdev, 65536); | 2480 | netif_set_gso_max_size(netdev, 65536); |