Browse Source

[hermon] Reduce the RC ACK timeout

The ACK timeout determines how long we take to notice a failed
Reliable Connection.  Reducing it from the arbitrary value of 19 down
to 14 reduces the individual ACK timeout from around 2.1s to 67ms;
this in turn reduces the time to tear down and re-establish a broken
SRP session from around 30s to around 1s.
tags/v0.9.8
Michael Brown 14 years ago
parent
commit
1175f0cf29
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/infiniband/hermon.c

+ 1
- 1
src/drivers/infiniband/hermon.c View File

@@ -1108,7 +1108,7 @@ static int hermon_modify_qp ( struct ib_device *ibdev,
1108 1108
 		memset ( &qpctx, 0, sizeof ( qpctx ) );
1109 1109
 		MLX_FILL_1 ( &qpctx, 10,
1110 1110
 			     qpc_eec_data.primary_address_path.ack_timeout,
1111
-			     0x13 );
1111
+			     14 /* 4.096us * 2^(14) = 67ms */ );
1112 1112
 		MLX_FILL_2 ( &qpctx, 30,
1113 1113
 			     qpc_eec_data.retry_count, HERMON_RETRY_MAX,
1114 1114
 			     qpc_eec_data.rnr_retry, HERMON_RETRY_MAX );

Loading…
Cancel
Save