[SCSI] libfc: adds flogi retry in case DID is zero in RJT
authorVasu Dev <vasu.dev@intel.com>
Sat, 9 Oct 2010 00:12:20 +0000 (17:12 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 20:11:32 +0000 (15:11 -0500)
commit60a3c4dfb7830845a97a20e73b7d938dc2fde6c1
tree589a230cf3fad5a3aae823f7087db35bb9f6297d
parent75eee7252466342e0dfa6675106bcd3955090f67
[SCSI] libfc: adds flogi retry in case DID is zero in RJT

Sometimes switch in NPV mode rejects flogi request with DID
zero and in that case flogi is not tried again and port
remains offline, so this patch validates DID for non zero
along with only ACC response to allow flogi retry
for RJT with DID=0 also succeed FLOGI in next try.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_lport.c