summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2010-06-11 16:44:04 -0700
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 12:01:46 -0500
commitf8fc6c2c99b8085368119d6cf39b997255052826 (patch)
treed1ba9ea7fc49fd8c96143cdcf81a8a9892716ee5 /include/scsi
parent5d4a2e29fba5b2bef95b96a46b338ec4d76fa4fd (diff)
downloadblackbird-op-linux-f8fc6c2c99b8085368119d6cf39b997255052826.tar.gz
blackbird-op-linux-f8fc6c2c99b8085368119d6cf39b997255052826.zip
[SCSI] libfc: Handle unsolicited PRLO request
Resubmitting after incorporating Joe's review comment. Unsolicited PRLO request is now handled by sending LS_ACC, and then relogin to the remote port if an N-port login session exists for that remote port. Note that this patch should be applied on top of Joe Eykholt's "Fix remote port restart problem" patch. 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>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/fc/fc_els.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/scsi/fc/fc_els.h b/include/scsi/fc/fc_els.h
index f94328132a26..70a7e92a7664 100644
--- a/include/scsi/fc/fc_els.h
+++ b/include/scsi/fc/fc_els.h
@@ -405,6 +405,15 @@ struct fc_els_prli {
};
/*
+ * ELS_PRLO - Process logout request and response.
+ */
+struct fc_els_prlo {
+ __u8 prlo_cmd; /* command */
+ __u8 prlo_obs; /* obsolete, but shall be set to 10h */
+ __be16 prlo_len; /* payload length */
+};
+
+/*
* ELS_ADISC payload
*/
struct fc_els_adisc {
OpenPOWER on IntegriCloud