aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2010-02-17 05:18:58 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:46:33 -0500
commit2d8e62bbf7e83facd5701c100f62fbf0df4ee486 (patch)
tree836259af89d5ca843d6445c1907fbb492d758777 /drivers/s390
parentab72528a4498251a702fa7693b51b9311b2432f8 (diff)
[SCSI] zfcp: Replace FC4 constants with information from exchange port
The FC4 types are already available from exchange port. Use this for reporting the FC4 types, instead of having the value hardcoded in zfcp. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 1c47c495d69d..8a0705ac52a1 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -491,8 +491,6 @@ static int zfcp_fsf_exchange_config_evaluate(struct zfcp_fsf_req *req)
491 fc_host_port_id(shost) = ntoh24(bottom->s_id); 491 fc_host_port_id(shost) = ntoh24(bottom->s_id);
492 fc_host_speed(shost) = bottom->fc_link_speed; 492 fc_host_speed(shost) = bottom->fc_link_speed;
493 fc_host_supported_classes(shost) = FC_COS_CLASS2 | FC_COS_CLASS3; 493 fc_host_supported_classes(shost) = FC_COS_CLASS2 | FC_COS_CLASS3;
494 fc_host_supported_fc4s(shost)[2] = 1; /* FCP */
495 fc_host_active_fc4s(shost)[2] = 1; /* FCP */
496 494
497 adapter->hydra_version = bottom->adapter_type; 495 adapter->hydra_version = bottom->adapter_type;
498 adapter->timer_ticks = bottom->timer_interval; 496 adapter->timer_ticks = bottom->timer_interval;
@@ -615,6 +613,10 @@ static void zfcp_fsf_exchange_port_evaluate(struct zfcp_fsf_req *req)
615 fc_host_permanent_port_name(shost) = fc_host_port_name(shost); 613 fc_host_permanent_port_name(shost) = fc_host_port_name(shost);
616 fc_host_maxframe_size(shost) = bottom->maximum_frame_size; 614 fc_host_maxframe_size(shost) = bottom->maximum_frame_size;
617 fc_host_supported_speeds(shost) = bottom->supported_speed; 615 fc_host_supported_speeds(shost) = bottom->supported_speed;
616 memcpy(fc_host_supported_fc4s(shost), bottom->supported_fc4_types,
617 FC_FC4_LIST_SIZE);
618 memcpy(fc_host_active_fc4s(shost), bottom->active_fc4_types,
619 FC_FC4_LIST_SIZE);
618} 620}
619 621
620static void zfcp_fsf_exchange_port_data_handler(struct zfcp_fsf_req *req) 622static void zfcp_fsf_exchange_port_data_handler(struct zfcp_fsf_req *req)