[SCSI] libfcoe: retry rejected FLOGI to another FCF if possible
authorJoe Eykholt <jeykholt@cisco.com>
Wed, 1 Dec 2010 00:19:56 +0000 (16:19 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:32 +0000 (12:24 -0600)
commit794d98e77f5901ceded697f1633463e88f078038
tree97ac82ba7b14821472f81400f8d1a7230e037cb7
parentb69ae0ae3f322d9a6bc4e209049b5b6e193ad652
[SCSI] libfcoe: retry rejected FLOGI to another FCF if possible

Switches using multiple-FCFs may reject FLOGI in order to
balance the load between multiple FCFs.  Even though the FCF
was available, it may have more load at the point we actually
send the FLOGI.

If the FLOGI fails, select a different FCF
if possible, among those with the same priority.  If no other
FCF is available, just deliver the reject to libfc for retry.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/libfcoe.c
include/scsi/libfcoe.h