aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_cm.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2009-07-17 09:13:22 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-20 11:03:01 -0400
commit3ba23ade464cca7c4a7ba5628c613339d3f2e161 (patch)
treeb0c5e487a9b2461fbbfdcedde870d2b545b5deb3 /net/rds/ib_cm.c
parent4edf547b4d0f886acf5aa5a0c8f8edbaff280830 (diff)
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,
145 /* XXX tune these? */ 145 /* XXX tune these? */
146 conn_param->responder_resources = 1; 146 conn_param->responder_resources = 1;
147 conn_param->initiator_depth = 1; 147 conn_param->initiator_depth = 1;
148 conn_param->retry_count = 7; 148 conn_param->retry_count = min_t(unsigned int, rds_ib_retry_count, 7);
149 conn_param->rnr_retry_count = 7; 149 conn_param->rnr_retry_count = 7;
150 150
151 if (dp) { 151 if (dp) {