ixgbe: Fix race condition where RX buffer could become corrupted.
authorAtita Shirwaikar <atita.shirwaikar@intel.com>
Sat, 18 Feb 2012 02:58:58 +0000 (02:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Mar 2012 07:47:42 +0000 (00:47 -0700)
commitd2f5e7f3af777d52ce110ae60e8cb788bc93141c
treeba26f920fcd8a77aa3a206e957aa9198e0fc3d66
parent3ed69d7e318ce17c77d91fd09a963cf48ce3a8a9
ixgbe: Fix race condition where RX buffer could become corrupted.

There was a race condition in the reset path where the RX buffer
could become corrupted during Fdir configuration.This is due to
a HW bug.The fix right now is to lock the buffer while we do the
fdir configuration.Since we were using similar workaround for another bug,
I moved the existing code to a function and reused it.HW team also recommended
that IXGBE_MAX_SECRX_POLL value be changed from 30 to 40.The erratum for this
bug will be published in the next release 82599 Spec Update

Signed-off-by: Atita Shirwaikar <atita.shirwaikar@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c