ib_srpt: Increase maximum sg-list length from 128 to 65536

This avoids that the following message appears in the target system
kernel log for SRP commands with a scatterlist with e.g. 256 elements:

Unable to complete command due to SG IO count limitation


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-10-15 22:08:47 +00:00
parent 4d9c05f1ee
commit 0acf6c0ec2
2 changed files with 1 additions and 3 deletions

View File

@@ -4090,7 +4090,7 @@ static const struct attribute *srpt_sess_attrs[] = {
/* SCST target template for the SRP target implementation. */
static struct scst_tgt_template srpt_template = {
.name = DRV_NAME,
.sg_tablesize = SRPT_DEF_SG_TABLESIZE,
.sg_tablesize = 1 << 16,
.max_hw_pending_time = RDMA_COMPL_TIMEOUT_S,
#if !defined(CONFIG_SCST_PROC)
.enable_target = srpt_enable_target,

View File

@@ -118,8 +118,6 @@ enum {
SRP_LOGIN_RSP_MULTICHAN_TERMINATED = 0x1,
SRP_LOGIN_RSP_MULTICHAN_MAINTAINED = 0x2,
SRPT_DEF_SG_TABLESIZE = 128,
MIN_SRPT_SQ_SIZE = 16,
DEF_SRPT_SQ_SIZE = 4096,
SRPT_RQ_SIZE = 128,