aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_cm.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2009-07-17 13:13:22 +0000
committerDavid S. Miller <davem@davemloft.net>2009-07-20 08:03:01 -0700
commit3ba23ade464cca7c4a7ba5628c613339d3f2e161 (patch)
treeb0c5e487a9b2461fbbfdcedde870d2b545b5deb3 /net/rds/ib_cm.c
parentnet: explain netns notifiers a little better (diff)
downloadlinux-dev-3ba23ade464cca7c4a7ba5628c613339d3f2e161.tar.xz
linux-dev-3ba23ade464cca7c4a7ba5628c613339d3f2e161.zip
RDS: Set retry_count to 2 and make modifiable via modparam
This will be default cause IB connections to failover faster, but allow a longer retry count to be used if desired. Signed-off-by: Andy Grover <andy.grover@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib_cm.c')
-rw-r--r--net/rds/ib_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
index f8e40e1a6038..605c032ed5d5 100644
--- a/net/rds/ib_cm.c
+++ b/net/rds/ib_cm.c
@@ -145,7 +145,7 @@ static void rds_ib_cm_fill_conn_param(struct rds_connection *conn,
/* XXX tune these? */
conn_param->responder_resources = 1;
conn_param->initiator_depth = 1;
- conn_param->retry_count = 7;
+ conn_param->retry_count = min_t(unsigned int, rds_ib_retry_count, 7);
conn_param->rnr_retry_count = 7;
if (dp) {