diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mid.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index 9a82c34f6206..987c5b0ca78e 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c | |||
@@ -399,7 +399,10 @@ qla24xx_create_vhost(struct fc_vport *fc_vport) | |||
399 | host->can_queue = base_vha->req->length + 128; | 399 | host->can_queue = base_vha->req->length + 128; |
400 | host->this_id = 255; | 400 | host->this_id = 255; |
401 | host->cmd_per_lun = 3; | 401 | host->cmd_per_lun = 3; |
402 | host->max_cmd_len = MAX_CMDSZ; | 402 | if ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && ql2xenabledif) |
403 | host->max_cmd_len = 32; | ||
404 | else | ||
405 | host->max_cmd_len = MAX_CMDSZ; | ||
403 | host->max_channel = MAX_BUSES - 1; | 406 | host->max_channel = MAX_BUSES - 1; |
404 | host->max_lun = MAX_LUNS; | 407 | host->max_lun = MAX_LUNS; |
405 | host->unique_id = host->host_no; | 408 | host->unique_id = host->host_no; |