aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2010-06-11 19:44:04 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:01:46 -0400
commitf8fc6c2c99b8085368119d6cf39b997255052826 (patch)
treed1ba9ea7fc49fd8c96143cdcf81a8a9892716ee5 /include/scsi
parent5d4a2e29fba5b2bef95b96a46b338ec4d76fa4fd (diff)
[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 {
405}; 405};
406 406
407/* 407/*
408 * ELS_PRLO - Process logout request and response.
409 */
410struct fc_els_prlo {
411 __u8 prlo_cmd; /* command */
412 __u8 prlo_obs; /* obsolete, but shall be set to 10h */
413 __be16 prlo_len; /* payload length */
414};
415
416/*
408 * ELS_ADISC payload 417 * ELS_ADISC payload
409 */ 418 */
410struct fc_els_adisc { 419struct fc_els_adisc {