From 622d3145f7d24cfcfb259d49472e0b6eba6d3116 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 13 Nov 2011 10:04:55 +0000 Subject: [PATCH] ib_srpt: Increase default value of srp_max_req_size from 2116 to 4148 bytes. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3919 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/README | 2 +- srpt/src/ib_srpt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srpt/README b/srpt/README index 65a631311..5f5bbaa0b 100644 --- a/srpt/README +++ b/srpt/README @@ -68,7 +68,7 @@ The ib_srpt kernel module supports the following parameters: The larger this parameter, the more scatter/gather list elements can be sent at once. Use the following formula to compute an appropriate value for this parameter: 68 + 16 * (sg_tablesize). The default value of - this parameter is 2116, which corresponds to an sg table size of 128. + this parameter is 4148, which corresponds to an sg table size of 255. * srp_max_rsp_size (number) Maximum size of an SRP response message in bytes. Sense data is sent back via these messages towards the initiator. The default size is 256 bytes. diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index 1866f9de8..a5a2178ed 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -120,7 +120,7 @@ enum { DEFAULT_MAX_REQ_SIZE = sizeof(struct srp_cmd)/*48*/ + sizeof(struct srp_indirect_buf)/*20*/ - + 128 * sizeof(struct srp_direct_buf)/*16*/, + + 255 * sizeof(struct srp_direct_buf)/*16*/, MIN_MAX_RSP_SIZE = sizeof(struct srp_rsp)/*36*/ + 4, DEFAULT_MAX_RSP_SIZE = 256, /* leaves 220 bytes for sense data */