diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2010-07-16 09:37:37 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:48:49 -0400 |
commit | 01b047599ade30051bf6c14fbe64181d1fec3dfa (patch) | |
tree | 3a44039ec1c48b41ba8e988c230291aca20b833c /drivers/s390/scsi/zfcp_fsf.h | |
parent | faf4cd854203b26527d81e7e13d66e78774dad44 (diff) |
[SCSI] zfcp: Cleanup function parameters for sbal value.
A lot of functions require the amount of SBALs as one of their
parameter which is most times invariable. Therefore remove this
parameter and set the SBAL value explicitly if a non standard value is
required. In addition the warning message "oversized data" is
replaced with a BUG_ON() statement assuring the limits defined and
requested by zfcp.
Signed-off-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_fsf.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.h b/drivers/s390/scsi/zfcp_fsf.h index ca45e32d6b6f..ca110e386761 100644 --- a/drivers/s390/scsi/zfcp_fsf.h +++ b/drivers/s390/scsi/zfcp_fsf.h | |||
@@ -151,14 +151,6 @@ | |||
151 | /* fc service class */ | 151 | /* fc service class */ |
152 | #define FSF_CLASS_3 0x00000003 | 152 | #define FSF_CLASS_3 0x00000003 |
153 | 153 | ||
154 | /* SBAL chaining */ | ||
155 | #define ZFCP_FSF_MAX_SBALS_PER_REQ 36 | ||
156 | |||
157 | /* max. number of (data buffer) SBALEs in largest SBAL chain | ||
158 | * request ID + QTCB in SBALE 0 + 1 of first SBAL in chain */ | ||
159 | #define ZFCP_FSF_MAX_SBALES_PER_REQ \ | ||
160 | (ZFCP_FSF_MAX_SBALS_PER_REQ * ZFCP_QDIO_MAX_SBALES_PER_SBAL - 2) | ||
161 | |||
162 | /* logging space behind QTCB */ | 154 | /* logging space behind QTCB */ |
163 | #define FSF_QTCB_LOG_SIZE 1024 | 155 | #define FSF_QTCB_LOG_SIZE 1024 |
164 | 156 | ||