diff options
author | Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> | 2009-09-14 03:47:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-14 20:03:37 -0400 |
commit | 1b3ff02eac6dcb6d7d03a5be6a642b58ec9cf4bb (patch) | |
tree | d05ff7a6ff301dc21596c838e28e7c18f24cfba9 /drivers/net | |
parent | ce187619e8f39abd60a8d99eeb2c52b4c00adc13 (diff) |
ixgbe: Properly disable packet split per-ring when globally disabled
The packet split feature was recently moved out of the adapter-wide flags
feature field and into a per-Rx ring feature field. In the process, packet
split isn't properly disabled in the Rx ring if the adapter has it globally
disabled, followed by a device reset.
This won't impact the driver today, since it's always in packet split mode.
However, this will prevent any pitfalls if someone disables packet split on
the adapter in the future and doesn't disable it in each ring.
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 45bf8b9716e3..b47aaa881334 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2055,6 +2055,8 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter) | |||
2055 | 2055 | ||
2056 | if (adapter->flags & IXGBE_FLAG_RX_PS_ENABLED) | 2056 | if (adapter->flags & IXGBE_FLAG_RX_PS_ENABLED) |
2057 | rx_ring->flags |= IXGBE_RING_RX_PS_ENABLED; | 2057 | rx_ring->flags |= IXGBE_RING_RX_PS_ENABLED; |
2058 | else | ||
2059 | rx_ring->flags &= ~IXGBE_RING_RX_PS_ENABLED; | ||
2058 | 2060 | ||
2059 | #ifdef IXGBE_FCOE | 2061 | #ifdef IXGBE_FCOE |
2060 | if (netdev->features & NETIF_F_FCOE_MTU) { | 2062 | if (netdev->features & NETIF_F_FCOE_MTU) { |