[SCSI] libfcoe: fip: fix non-FIP-mode FLOGI state after reset.
authorJoe Eykholt <jeykholt@cisco.com>
Wed, 6 May 2009 17:52:12 +0000 (10:52 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 8 Jun 2009 18:29:07 +0000 (13:29 -0500)
commit5f48f70ecef25df93e122985272ff647f5653836
treeaa649391e6629ec9f4009ce83dec3f24c37d0e62
parentf00a3328bf9ecff46abd68a421693ba71cd16fc8
[SCSI] libfcoe: fip: fix non-FIP-mode FLOGI state after reset.

When a reset is sent using fcoeadm on a non-FIP mode NIC,
there's no link flap, so the fcoe_ctlr stays in non-FIP mode.

In that case, FIP wasn't setting the flogi_oxid or map_dest flag,
causing the FLOGI to be sent with the both wrong source MAC and
the wrong destination MAC address, causing it to fail.

This leads to a non-functioning HBA until a link flap or
instance delete/create.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/fcoe/libfcoe.c