]> Pileus Git - ~andy/linux/commit
ixgbe: do not clear FCoE DDP error status for received ABTS
authorYi Zou <yi.zou@intel.com>
Sat, 9 Apr 2011 08:34:12 +0000 (08:34 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 27 Apr 2011 09:18:04 +0000 (02:18 -0700)
commit7aba7b077f638deb9569e0b36256cd9ae76e468c
tree285f2bdcd12c06e371fa24d03921afdf4263b424
parentb32c8dcc33a74fb4f1e73ed2263504f5947ca76b
ixgbe: do not clear FCoE DDP error status for received ABTS

The ddp->err is initialized to be 1 to make sure outstanding DDP context is
guaranteed to be invalidated when HW is not auto-invalidating it. However,
in case of receiving ABTS response for a DDPed I/O, the ddp->err was cleared,
bypassing the invalidating of the DDP context from upper protocol stack when
ixgbe_fcoe_ddp_put() is called. This bug is fixed here by updating the error
only when FCP_RSP is received.

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