From bcf7cfa5522cbabe2ad6ed90302ef9779b9b1606 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 15 Dec 2011 10:49:12 +0000 Subject: [PATCH] ib_srpt: Increase default value of srp_max_req_size from 2116 to 4148 bytes (merge r3939 from trunk). git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3994 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 f3adf3a44..95bba1879 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 69581c801..cfe0c09eb 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -124,7 +124,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 */