linux-hardened/drivers/net/ethernet/intel/ixgbe
Alexander Duyck b2db497eb2 ixgbe: Identify FCoE rings earlier to resolve memory corruption w/ FCoE
This patch makes it so that we identify FCoE rings earlier than
ixgbe_set_rx_buffer_len.  Instead we identify the Rx FCoE rings at
allocation time in ixgbe_alloc_q_vector.

The motivation behind this change is to avoid memory corruption when FCoE
is enabled.  Without this change we were initializing the rings at 0, and
2K on systems with 4K pages, then when we bumped the buffer size to 4K with
order 1 pages we were accessing offsets 2K and 6K instead of 0 and 4K.
This was resulting in memory corruptions.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Yi Zou <yi.zou@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2012-04-17 15:43:02 -07:00
..
ixgbe.h ixgbe: fix typo in enumeration name 2012-03-27 23:34:54 -07:00
ixgbe_82598.c ixgbe: Do not disable read relaxed ordering when DCA is enabled 2012-03-14 00:30:17 -07:00
ixgbe_82599.c ixgbe: Fix race condition where RX buffer could become corrupted. 2012-03-14 00:47:42 -07:00
ixgbe_common.c ixgbe: Fix issues with SR-IOV loopback when flow control is disabled 2012-03-19 17:37:21 -04:00
ixgbe_common.h ixgbe: Fix race condition where RX buffer could become corrupted. 2012-03-14 00:47:42 -07:00
ixgbe_dcb.c ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_82598.c ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_82598.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_82599.c ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_82599.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_nl.c ixgbe: driver fix for link flap 2012-04-03 15:24:57 -07:00
ixgbe_ethtool.c ixgbe: Correct flag values set by ixgbe_fix_features 2012-03-19 13:43:34 -07:00
ixgbe_fcoe.c ixgbe: Store Tx flags and protocol information to tx_buffer sooner 2012-03-19 01:38:42 -07:00
ixgbe_fcoe.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_lib.c ixgbe: Identify FCoE rings earlier to resolve memory corruption w/ FCoE 2012-04-17 15:43:02 -07:00
ixgbe_main.c ixgbe: Identify FCoE rings earlier to resolve memory corruption w/ FCoE 2012-04-17 15:43:02 -07:00
ixgbe_mbx.c ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_mbx.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_phy.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-02-04 16:39:32 -05:00
ixgbe_phy.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_sriov.c drivers/net: Remove boolean comparisons to true/false 2012-02-13 00:47:40 -05:00
ixgbe_sriov.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_type.h ixgbe: Fix race condition where RX buffer could become corrupted. 2012-03-14 00:47:42 -07:00
ixgbe_x540.c ixgbe: Fix race condition where RX buffer could become corrupted. 2012-03-14 00:47:42 -07:00
Makefile ixgbe: fix namespace issues when FCoE/DCB is not enabled 2012-03-19 13:59:11 -07:00