diff options
author | Abhijeet Joglekar <abjoglek@cisco.com> | 2009-10-21 19:28:19 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:00:35 -0500 |
commit | f9bdc3da4c9c2af4886bc6a562effc05cbf75234 (patch) | |
tree | 3aea57eeee1f43905dabec0a7c1194f7be5935c8 | |
parent | d5cf4b28e13989ace24cf26de1e1debec18e9685 (diff) |
[SCSI] fnic: Set max_cmd_len to driver supported CDB length
Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/scsi/fnic/fnic.h | 2 | ||||
-rw-r--r-- | drivers/scsi/fnic/fnic_main.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h index e4c0a3d7d87b..1bc267e892d2 100644 --- a/drivers/scsi/fnic/fnic.h +++ b/drivers/scsi/fnic/fnic.h | |||
@@ -44,7 +44,7 @@ | |||
44 | #define FNIC_IO_LOCKS 64 /* IO locks: power of 2 */ | 44 | #define FNIC_IO_LOCKS 64 /* IO locks: power of 2 */ |
45 | #define FNIC_DFLT_QUEUE_DEPTH 32 | 45 | #define FNIC_DFLT_QUEUE_DEPTH 32 |
46 | #define FNIC_STATS_RATE_LIMIT 4 /* limit rate at which stats are pulled up */ | 46 | #define FNIC_STATS_RATE_LIMIT 4 /* limit rate at which stats are pulled up */ |
47 | 47 | #define FNIC_MAX_CMD_LEN 16 /* Supported CDB length */ | |
48 | /* | 48 | /* |
49 | * Tag bits used for special requests. | 49 | * Tag bits used for special requests. |
50 | */ | 50 | */ |
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index 71c7bbe26d05..b0d425ab30ab 100644 --- a/drivers/scsi/fnic/fnic_main.c +++ b/drivers/scsi/fnic/fnic_main.c | |||
@@ -560,6 +560,7 @@ static int __devinit fnic_probe(struct pci_dev *pdev, | |||
560 | } | 560 | } |
561 | host->max_lun = fnic->config.luns_per_tgt; | 561 | host->max_lun = fnic->config.luns_per_tgt; |
562 | host->max_id = FNIC_MAX_FCP_TARGET; | 562 | host->max_id = FNIC_MAX_FCP_TARGET; |
563 | host->max_cmd_len = FNIC_MAX_CMD_LEN; | ||
563 | 564 | ||
564 | fnic_get_res_counts(fnic); | 565 | fnic_get_res_counts(fnic); |
565 | 566 | ||