]> git.karo-electronics.de Git - mv-sheeva.git/commit
[SCSI] libfc: Honor LS_ACC response codes for PRLI
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 11 Jun 2010 23:43:54 +0000 (16:43 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:01:45 +0000 (12:01 -0500)
commit618461c02b00a658ec8aa07d409cd496a7e254e2
treed4e3baa7fee94a79c8882c85f93422a45a9be5a2
parent292e40b956982601dfc61fe8f0470eb18a616d7e
[SCSI] libfc: Honor LS_ACC response codes for PRLI

As per FC-LS Rev 1.62 table 46, response codes are handled as follows:

1. If the Req executed is true, PRLI is accepted.
2. If Req executed is not set,  if resp code is 5,
   PRLI is not retried and port is logged out.
3. If resp code is anything apart from 1 or 5, PRLI is retired
   upto max retry count.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_rport.c