]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfcoe: reorder FCF list to put latest advertiser first
authorJoe Eykholt <jeykholt@cisco.com>
Wed, 1 Dec 2010 00:20:07 +0000 (16:20 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:33 +0000 (12:24 -0600)
commit69df984ac43a5c12fa334c4e79e8c6f0ced408bd
tree5df76658bb23e1c5733715a5d6c369139f17dbea
parent03e14dbcf0adf897a29b98547fadb572e6ce5225
[SCSI] libfcoe: reorder FCF list to put latest advertiser first

When there are several FCFs to choose from, the one most likely
to accept a FLOGI on certian switches is the one that last
answered a multicast solicit.

So, when receiving an advertisement, move the FCF to the front
of the list so that it gets chosen first among those with the
same priority.

Without this, more FLOGIs need to be sent in a test with
multiple FCFs and a switch in NPV mode, but it still
eventually finds one that accepts the FLOGI.

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