]> git.baikalelectronics.ru Git - kernel.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)
commitd46a1b92c61b393733af73da2c5f3b46f7f87073
tree7fbff617fa4868012f0d1240a90e7e06c4d5158d
parentffe37bb0a8570f67216674d9ee36f660a4b35842
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