mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 13:41:27 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user