[SCSI] fnic: Set max_cmd_len to driver supported CDB length
authorAbhijeet Joglekar <abjoglek@cisco.com>
Wed, 21 Oct 2009 23:28:19 +0000 (16:28 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:35 +0000 (12:00 -0600)
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>
drivers/scsi/fnic/fnic.h
drivers/scsi/fnic/fnic_main.c

index e4c0a3d7d87b96d2b5f5aefd578a55320933d64c..1bc267e892d29a9cf84a551e2fcb9c6476e21abc 100644 (file)
@@ -44,7 +44,7 @@
 #define        FNIC_IO_LOCKS           64 /* IO locks: power of 2 */
 #define FNIC_DFLT_QUEUE_DEPTH  32
 #define        FNIC_STATS_RATE_LIMIT   4 /* limit rate at which stats are pulled up */
-
+#define FNIC_MAX_CMD_LEN        16 /* Supported CDB length */
 /*
  * Tag bits used for special requests.
  */
index 71c7bbe26d05844e230cd21a39e4de7bcf85d1d5..b0d425ab30abd2e81cf3bc5f515b589deefc9f29 100644 (file)
@@ -560,6 +560,7 @@ static int __devinit fnic_probe(struct pci_dev *pdev,
        }
        host->max_lun = fnic->config.luns_per_tgt;
        host->max_id = FNIC_MAX_FCP_TARGET;
+       host->max_cmd_len = FNIC_MAX_CMD_LEN;
 
        fnic_get_res_counts(fnic);