diff options
author | Arun Easi <arun.easi@qlogic.com> | 2010-07-23 06:28:38 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:06:18 -0400 |
commit | 0c470874858e0075f420dcfb3c3570b2057de275 (patch) | |
tree | fcf71bf85fa95567727187f32de29ff3ddb54827 /drivers/scsi/qla2xxx/qla_os.c | |
parent | 3dbe756a66afbec6487068d4213ecccc3a18807f (diff) |
[SCSI] qla2xxx: T10 DIF Type 2 support
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index aeb2f1b504c4..ff2172da7c19 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2147,7 +2147,10 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
2147 | host->this_id = 255; | 2147 | host->this_id = 255; |
2148 | host->cmd_per_lun = 3; | 2148 | host->cmd_per_lun = 3; |
2149 | host->unique_id = host->host_no; | 2149 | host->unique_id = host->host_no; |
2150 | host->max_cmd_len = MAX_CMDSZ; | 2150 | if ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && ql2xenabledif) |
2151 | host->max_cmd_len = 32; | ||
2152 | else | ||
2153 | host->max_cmd_len = MAX_CMDSZ; | ||
2151 | host->max_channel = MAX_BUSES - 1; | 2154 | host->max_channel = MAX_BUSES - 1; |
2152 | host->max_lun = MAX_LUNS; | 2155 | host->max_lun = MAX_LUNS; |
2153 | host->transportt = qla2xxx_transport_template; | 2156 | host->transportt = qla2xxx_transport_template; |
@@ -2255,8 +2258,10 @@ skip_dpc: | |||
2255 | " protection.\n")); | 2258 | " protection.\n")); |
2256 | scsi_host_set_prot(host, | 2259 | scsi_host_set_prot(host, |
2257 | SHOST_DIF_TYPE1_PROTECTION | 2260 | SHOST_DIF_TYPE1_PROTECTION |
2261 | | SHOST_DIF_TYPE2_PROTECTION | ||
2258 | | SHOST_DIF_TYPE3_PROTECTION | 2262 | | SHOST_DIF_TYPE3_PROTECTION |
2259 | | SHOST_DIX_TYPE1_PROTECTION | 2263 | | SHOST_DIX_TYPE1_PROTECTION |
2264 | | SHOST_DIX_TYPE2_PROTECTION | ||
2260 | | SHOST_DIX_TYPE3_PROTECTION); | 2265 | | SHOST_DIX_TYPE3_PROTECTION); |
2261 | scsi_host_set_guard(host, SHOST_DIX_GUARD_CRC); | 2266 | scsi_host_set_guard(host, SHOST_DIX_GUARD_CRC); |
2262 | } else | 2267 | } else |