[SCSI] be2iscsi: Fixing the number of SGE's
authorJayamohan Kallickal <jayamohank@serverengines.com>
Wed, 6 Jan 2010 20:21:04 +0000 (01:51 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:26:03 +0000 (18:26 -0600)
The number of SGE's supported is fixed to what the
chip expects. Also, the max sectors set to tested values

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

index 4cde8f6eb5bc7ff3375e9afd9841a6a97edb82e1..13ff02c1fcaa04fa996c2faea2cb04d4d8786af3 100644 (file)
 #define BE2_DEFPDU_DATA_SZ     8192
 
 #define MAX_CPUS               31
-#define BEISCSI_SGLIST_ELEMENTS        BE2_SGE
+#define BEISCSI_SGLIST_ELEMENTS        30
 
 #define BEISCSI_CMD_PER_LUN    128     /* scsi_host->cmd_per_lun */
-#define BEISCSI_MAX_SECTORS    2048    /* scsi_host->max_sectors */
+#define BEISCSI_MAX_SECTORS    256     /* scsi_host->max_sectors */
 
 #define BEISCSI_MAX_CMD_LEN    16      /* scsi_host->max_cmd_len */
 #define BEISCSI_NUM_MAX_LUN    256     /* scsi_host->max_lun */