diff options
author | Ralph Wuerthner <rwuerthn@de.ibm.com> | 2006-05-22 12:24:33 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-05-28 12:45:15 -0400 |
commit | 75bfc2837bbcc329193d51e8b7115184b78beae0 (patch) | |
tree | 6d1511fce28948bd134f7148a996c04dc04e9d32 /drivers/s390/scsi/zfcp_fsf.c | |
parent | b7a52fa7fff2309031a2f849bc489206afd2fa4a (diff) |
[SCSI] zfcp: evaluate plogi payload to set maxframe_size, supported_classes of rports
Signed-off-by: Ralph Wuerthner <rwuerthn@de.ibm.com>
Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 55785acf8709..6335f9229184 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -2560,8 +2560,7 @@ zfcp_fsf_open_port_handler(struct zfcp_fsf_req *fsf_req) | |||
2560 | if (!atomic_test_mask(ZFCP_STATUS_PORT_NO_WWPN, &port->status)) | 2560 | if (!atomic_test_mask(ZFCP_STATUS_PORT_NO_WWPN, &port->status)) |
2561 | { | 2561 | { |
2562 | if (fsf_req->qtcb->bottom.support.els1_length < | 2562 | if (fsf_req->qtcb->bottom.support.els1_length < |
2563 | ((((unsigned long) &plogi->serv_param.wwpn) - | 2563 | sizeof (struct fsf_plogi)) { |
2564 | ((unsigned long) plogi)) + sizeof (u64))) { | ||
2565 | ZFCP_LOG_INFO( | 2564 | ZFCP_LOG_INFO( |
2566 | "warning: insufficient length of " | 2565 | "warning: insufficient length of " |
2567 | "PLOGI payload (%i)\n", | 2566 | "PLOGI payload (%i)\n", |
@@ -2580,8 +2579,10 @@ zfcp_fsf_open_port_handler(struct zfcp_fsf_req *fsf_req) | |||
2580 | atomic_clear_mask( | 2579 | atomic_clear_mask( |
2581 | ZFCP_STATUS_PORT_DID_DID, | 2580 | ZFCP_STATUS_PORT_DID_DID, |
2582 | &port->status); | 2581 | &port->status); |
2583 | } else | 2582 | } else { |
2584 | port->wwnn = plogi->serv_param.wwnn; | 2583 | port->wwnn = plogi->serv_param.wwnn; |
2584 | zfcp_plogi_evaluate(port, plogi); | ||
2585 | } | ||
2585 | } | 2586 | } |
2586 | } | 2587 | } |
2587 | break; | 2588 | break; |