ixgbe: fix X540 Completion timeout
authorDon Skidmore <donald.c.skidmore@intel.com>
Wed, 29 Oct 2014 07:23:41 +0000 (07:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 11 Nov 2014 14:05:27 +0000 (06:05 -0800)
commit71bde60191a9fa44d33b582c5e3713ffe99b0fef
tree13e5232d88ca50599b88707d44798e8f2dddadc9
parentcc0529271f23896208723e310fd75c2c88b3fd8c
ixgbe: fix X540 Completion timeout

On topologies including few levels of PCIe switching X540 can run into an
unexpected completion error.  We get around this by waiting after enabling
loopback a sufficient amount of time until Tx Data Fetch is sent.  We then
poll the pending transaction bit to ensure we received the completion.  Only
then do we go on to clear the buffers.

Signed-of-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c