]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ixgbe: make sure FCoE DDP user buffers are really released by the HW
authorYi Zou <yi.zou@intel.com>
Wed, 17 Nov 2010 03:27:14 +0000 (19:27 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Nov 2010 03:27:14 +0000 (19:27 -0800)
commit9b55bb038468a7b504ccdc1d956952598ae1b85b
tree7fbff617fa4868012f0d1240a90e7e06c4d5158d
parent8ca371e484e2e5ceb9b90fdb83d8d251017d852b
ixgbe: make sure FCoE DDP user buffers are really released by the HW

When invalidating the DDP context is invalidated, the HW may not be done
with the user buffer right away. In which case, we poll the FCBUFF register
to check if the buffer valid bit is cleared or not, if not, we wait for max
100us that is guaranteed by the HW.

Signed-off-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>
drivers/net/ixgbe/ixgbe_fcoe.c