From 020ec68ddc985ff392267e0022d348a819e948bb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 16 Jun 2015 18:57:16 +0000 Subject: [PATCH] ib_srpt: Change default behavior from using SRQ to not using SRQ Although the non-SRQ mode needs more resources that mode has the advantage that the end-to-end flow control mechanism is used. From the IB spec: C9-150.2.1: For QPs that are not associated with an SRQ, each HCA receive queue shall generate end-to-end flow control credits. If a QP is associated with an SRQ, the HCA receive queue shall not generate end-to-end flow control credits. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6329 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 30141669c..8e0d43005 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -130,9 +130,9 @@ MODULE_PARM_DESC(srp_max_rsp_size, #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) \ || defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 -static int use_srq = true; +static int use_srq; #else -static bool use_srq = true; +static bool use_srq; #endif module_param(use_srq, bool, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(use_srq,