aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_fc.c')
-rw-r--r--drivers/s390/scsi/zfcp_fc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c
index fbe2c76df4d7..e984469bb98b 100644
--- a/drivers/s390/scsi/zfcp_fc.c
+++ b/drivers/s390/scsi/zfcp_fc.c
@@ -83,8 +83,8 @@ static void zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req)
83 u16 no_entries; 83 u16 no_entries;
84 u32 range_mask; 84 u32 range_mask;
85 85
86 fcp_rscn_head = (struct fcp_rscn_head *) status_buffer->payload; 86 fcp_rscn_head = (struct fcp_rscn_head *) status_buffer->payload.data;
87 fcp_rscn_element = (struct fcp_rscn_element *) status_buffer->payload; 87 fcp_rscn_element = (struct fcp_rscn_element *) fcp_rscn_head;
88 88
89 /* see FC-FS */ 89 /* see FC-FS */
90 no_entries = fcp_rscn_head->payload_len / 90 no_entries = fcp_rscn_head->payload_len /
@@ -135,7 +135,7 @@ static void zfcp_fc_incoming_plogi(struct zfcp_fsf_req *req)
135 struct fsf_status_read_buffer *status_buffer = 135 struct fsf_status_read_buffer *status_buffer =
136 (struct fsf_status_read_buffer *)req->data; 136 (struct fsf_status_read_buffer *)req->data;
137 struct fsf_plogi *els_plogi = 137 struct fsf_plogi *els_plogi =
138 (struct fsf_plogi *) status_buffer->payload; 138 (struct fsf_plogi *) status_buffer->payload.data;
139 139
140 zfcp_fc_incoming_wwpn(req, els_plogi->serv_param.wwpn); 140 zfcp_fc_incoming_wwpn(req, els_plogi->serv_param.wwpn);
141} 141}
@@ -144,7 +144,8 @@ static void zfcp_fc_incoming_logo(struct zfcp_fsf_req *req)
144{ 144{
145 struct fsf_status_read_buffer *status_buffer = 145 struct fsf_status_read_buffer *status_buffer =
146 (struct fsf_status_read_buffer *)req->data; 146 (struct fsf_status_read_buffer *)req->data;
147 struct fcp_logo *els_logo = (struct fcp_logo *) status_buffer->payload; 147 struct fcp_logo *els_logo =
148 (struct fcp_logo *) status_buffer->payload.data;
148 149
149 zfcp_fc_incoming_wwpn(req, els_logo->nport_wwpn); 150 zfcp_fc_incoming_wwpn(req, els_logo->nport_wwpn);
150} 151}
@@ -157,7 +158,7 @@ void zfcp_fc_incoming_els(struct zfcp_fsf_req *fsf_req)
157{ 158{
158 struct fsf_status_read_buffer *status_buffer = 159 struct fsf_status_read_buffer *status_buffer =
159 (struct fsf_status_read_buffer *) fsf_req->data; 160 (struct fsf_status_read_buffer *) fsf_req->data;
160 unsigned int els_type = status_buffer->payload[0]; 161 unsigned int els_type = status_buffer->payload.data[0];
161 162
162 zfcp_san_dbf_event_incoming_els(fsf_req); 163 zfcp_san_dbf_event_incoming_els(fsf_req);
163 if (els_type == LS_PLOGI) 164 if (els_type == LS_PLOGI)