[SCSI] be2iscsi: Fix to allow driver to load when the FW allows more cids
authorJayamohan Kallickal <jayamohank@serverengines.com>
Wed, 6 Jan 2010 20:21:44 +0000 (01:51 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:26:05 +0000 (18:26 -0600)
This fix allows the driver to load when the FW allows more cids
than than the driver supports. The driver will limit the number of cid
to what it can support. There was no reason to fail the driver load,so,
correcting that

Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/be2iscsi/be_mgmt.c

index 18f80411aef64183fef7eb6822da1df0b1206d11..b0bb54dafbe94419bdd270e998ab78a9abf27888 100644 (file)
@@ -49,12 +49,12 @@ unsigned char mgmt_get_fw_config(struct be_ctrl_info *ctrl,
                phba->fw_config.iscsi_cid_count =
                                        pfw_cfg->ulp[0].sq_count;
                if (phba->fw_config.iscsi_cid_count > (BE2_MAX_SESSIONS / 2)) {
-                       status = 1;
-                       shost_printk(KERN_WARNING, phba->shost,
-                            "FW reported MAX CXNS as %d \t"
-                            "Max Supported = %d. Failing to load \n",
-                                       phba->fw_config.iscsi_cid_count,
-                                       BE2_MAX_SESSIONS);
+                       SE_DEBUG(DBG_LVL_8,
+                               "FW reported MAX CXNS as %d \t"
+                               "Max Supported = %d.\n",
+                               phba->fw_config.iscsi_cid_count,
+                               BE2_MAX_SESSIONS);
+                       phba->fw_config.iscsi_cid_count = BE2_MAX_SESSIONS / 2;
                }
        } else {
                shost_printk(KERN_WARNING, phba->shost,
This page took 0.025675 seconds and 5 git commands to generate.