summaryrefslogtreecommitdiffstats
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
parent4edf547b4d0f886acf5aa5a0c8f8edbaff280830 (diff)
downloadop-kernel-dev-3ba23ade464cca7c4a7ba5628c613339d3f2e161.zip
op-kernel-dev-3ba23ade464cca7c4a7ba5628c613339d3f2e161.tar.gz
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 f8e40e1..605c032 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) {
OpenPOWER on IntegriCloud