aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_dbf.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-11-24 10:54:13 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:02:15 -0500
commit7c7dc196814b9e1d5cc254dc579a5fa78ae524f7 (patch)
treeefe4800a456fa97e1f10876840fbde0983264b18 /drivers/s390/scsi/zfcp_dbf.h
parent800c0cad962dcf630cabf3efdc5983619e73d4c9 (diff)
[SCSI] zfcp: Simplify handling of ct and els requests
Remove some redundancies in FC related code and trace: - drop redundant data from SAN trace (local s_id that only changes during link down, ls_code that is already part of payload, d_id in ct response trace that is always the same as in ct request trace) - use one common fsf struct to hold zfcp data for ct and els requests - leverage common fsf struct for FC passthrough job data, allocate it with dd_bsg_data for passthrough requests and unify common code for ct and els passthrough request - simplify callback handling in zfcp_fc 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/scsi/zfcp_dbf.h')
-rw-r--r--drivers/s390/scsi/zfcp_dbf.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.h b/drivers/s390/scsi/zfcp_dbf.h
index c3e25702df5b..8b7fd9a1033e 100644
--- a/drivers/s390/scsi/zfcp_dbf.h
+++ b/drivers/s390/scsi/zfcp_dbf.h
@@ -123,7 +123,6 @@ struct zfcp_dbf_hba_record_response {
123 } unit; 123 } unit;
124 struct { 124 struct {
125 u32 d_id; 125 u32 d_id;
126 u8 ls_code;
127 } els; 126 } els;
128 } u; 127 } u;
129} __attribute__ ((packed)); 128} __attribute__ ((packed));
@@ -167,6 +166,7 @@ struct zfcp_dbf_san_record_ct_request {
167 u8 options; 166 u8 options;
168 u16 max_res_size; 167 u16 max_res_size;
169 u32 len; 168 u32 len;
169 u32 d_id;
170} __attribute__ ((packed)); 170} __attribute__ ((packed));
171 171
172struct zfcp_dbf_san_record_ct_response { 172struct zfcp_dbf_san_record_ct_response {
@@ -180,16 +180,13 @@ struct zfcp_dbf_san_record_ct_response {
180} __attribute__ ((packed)); 180} __attribute__ ((packed));
181 181
182struct zfcp_dbf_san_record_els { 182struct zfcp_dbf_san_record_els {
183 u8 ls_code; 183 u32 d_id;
184 u32 len;
185} __attribute__ ((packed)); 184} __attribute__ ((packed));
186 185
187struct zfcp_dbf_san_record { 186struct zfcp_dbf_san_record {
188 u8 tag[ZFCP_DBF_TAG_SIZE]; 187 u8 tag[ZFCP_DBF_TAG_SIZE];
189 u64 fsf_reqid; 188 u64 fsf_reqid;
190 u32 fsf_seqno; 189 u32 fsf_seqno;
191 u32 s_id;
192 u32 d_id;
193 union { 190 union {
194 struct zfcp_dbf_san_record_ct_request ct_req; 191 struct zfcp_dbf_san_record_ct_request ct_req;
195 struct zfcp_dbf_san_record_ct_response ct_resp; 192 struct zfcp_dbf_san_record_ct_response ct_resp;