public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] be2iscsi: Fixing the number of SGE's
@ 2010-01-06 20:21 Jayamohan Kallickal
  2010-01-06 20:30 ` Mike Christie
  0 siblings, 1 reply; 4+ messages in thread
From: Jayamohan Kallickal @ 2010-01-06 20:21 UTC (permalink / raw)
  To: linux-scsi; +Cc: James.Bottomley, michaelc

	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>
---
 drivers/scsi/be2iscsi/be_main.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
index 4cde8f6..13ff02c 100644
--- a/drivers/scsi/be2iscsi/be_main.h
+++ b/drivers/scsi/be2iscsi/be_main.h
@@ -56,10 +56,10 @@
 #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 */
-- 
1.6.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/3] be2iscsi: Fixing the number of SGE's
  2010-01-06 20:21 Jayamohan Kallickal
@ 2010-01-06 20:30 ` Mike Christie
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Christie @ 2010-01-06 20:30 UTC (permalink / raw)
  To: Jayamohan Kalickal; +Cc: linux-scsi, James.Bottomley

On 01/06/2010 02:21 PM, Jayamohan Kallickal wrote:
> 	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>
> ---
>   drivers/scsi/be2iscsi/be_main.h |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
> index 4cde8f6..13ff02c 100644
> --- a/drivers/scsi/be2iscsi/be_main.h
> +++ b/drivers/scsi/be2iscsi/be_main.h
> @@ -56,10 +56,10 @@
>   #define BE2_DEFPDU_DATA_SZ	8192
>
>   #define MAX_CPUS		31
> -#define BEISCSI_SGLIST_ELEMENTS	BE2_SGE
> +#define BEISCSI_SGLIST_ELEMENTS	30

BE2_SGE is now not used, so you can kill it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/3] be2iscsi: Fixing the number of SGE's
@ 2010-01-06 22:10 Jayamohan Kalickal
  2010-01-07 19:57 ` Mike Christie
  0 siblings, 1 reply; 4+ messages in thread
From: Jayamohan Kalickal @ 2010-01-06 22:10 UTC (permalink / raw)
  To: Mike Christie; +Cc: linux-scsi, James.Bottomley

It is used in be_main.c (num_sge_per_io). 

The FW expects and sglist with 32 SGE's but 2 are used internally.


-Jay


--
  _____  
From: Mike Christie [mailto:michaelc@cs.wisc.edu]
To: Jayamohan Kalickal [mailto:jayamohank@serverengines.com]
Cc: linux-scsi@vger.kernel.org, James.Bottomley@suse.de
Sent: Wed, 06 Jan 2010 12:30:52 -0800
Subject: Re: [PATCH 2/3] be2iscsi: Fixing the number of SGE's

On 01/06/2010 02:21 PM, Jayamohan Kallickal wrote:
> 	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>
> ---
>   drivers/scsi/be2iscsi/be_main.h |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
> index 4cde8f6..13ff02c 100644
> --- a/drivers/scsi/be2iscsi/be_main.h
> +++ b/drivers/scsi/be2iscsi/be_main.h
> @@ -56,10 +56,10 @@
>   #define BE2_DEFPDU_DATA_SZ	8192
>
>   #define MAX_CPUS		31
> -#define BEISCSI_SGLIST_ELEMENTS	BE2_SGE
> +#define BEISCSI_SGLIST_ELEMENTS	30

BE2_SGE is now not used, so you can kill it.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

___________________________________________________________________________________
This message, together with any attachment(s), contains confidential and proprietary information of
ServerEngines Corporation and is intended only for the designated recipient(s) named above. Any unauthorized
review, printing, retention, copying, disclosure or distribution is strictly prohibited.  If you are not the
intended recipient of this message, please immediately advise the sender by reply email message and
delete all copies of this message and any attachment(s). Thank you.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/3] be2iscsi: Fixing the number of SGE's
  2010-01-06 22:10 [PATCH 2/3] be2iscsi: Fixing the number of SGE's Jayamohan Kalickal
@ 2010-01-07 19:57 ` Mike Christie
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Christie @ 2010-01-07 19:57 UTC (permalink / raw)
  To: Jayamohan Kalickal; +Cc: linux-scsi, James.Bottomley

On 01/06/2010 04:10 PM, Jayamohan Kalickal wrote:
> It is used in be_main.c (num_sge_per_io).
>
> The FW expects and sglist with 32 SGE's but 2 are used internally.
>

My fault. Patches look ok to me.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-07 19:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 22:10 [PATCH 2/3] be2iscsi: Fixing the number of SGE's Jayamohan Kalickal
2010-01-07 19:57 ` Mike Christie
  -- strict thread matches above, loose matches on Subject: below --
2010-01-06 20:21 Jayamohan Kallickal
2010-01-06 20:30 ` Mike Christie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox