summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsmount.h
diff options
context:
space:
mode:
authorcel <cel@FreeBSD.org>2006-05-23 18:33:58 +0000
committercel <cel@FreeBSD.org>2006-05-23 18:33:58 +0000
commitec80996e6b2ebfba48c19d243ad3fd4f810cd75c (patch)
tree8e9eadb2175472785f8fc6b2f9477037efeed9f7 /sys/nfsclient/nfsmount.h
parent04be51fc90e96399fdb0fbc4352ca5b7b52e4ad6 (diff)
downloadFreeBSD-src-ec80996e6b2ebfba48c19d243ad3fd4f810cd75c.zip
FreeBSD-src-ec80996e6b2ebfba48c19d243ad3fd4f810cd75c.tar.gz
Refactor the NFS over UDP retransmit timeout estimation logic to allow
the estimator to be more easily tuned and maintained. There should be no functional change except there is now a lower limit on the retransmit timeout to prevent the client from retransmitting faster than the server's disks can fill requests, and an upper limit to prevent the estimator from taking to long to retransmit during a server outage. Reviewed by: mohan, kris, silby Sponsored by: Network Appliance, Incorporated
Diffstat (limited to 'sys/nfsclient/nfsmount.h')
-rw-r--r--sys/nfsclient/nfsmount.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfsmount.h b/sys/nfsclient/nfsmount.h
index e7b9d0f..4fd2afe 100644
--- a/sys/nfsclient/nfsmount.h
+++ b/sys/nfsclient/nfsmount.h
@@ -64,8 +64,8 @@ struct nfsmount {
struct sockaddr *nm_nam; /* Addr of server */
int nm_timeo; /* Init timer for NFSMNT_DUMBTIMR */
int nm_retry; /* Max retries */
- int nm_srtt[4]; /* Timers for rpcs */
- int nm_sdrtt[4];
+ int nm_srtt[NFS_MAX_TIMER], /* RTT Timers for rpcs */
+ nm_sdrtt[NFS_MAX_TIMER];
int nm_sent; /* Request send count */
int nm_cwnd; /* Request send window */
int nm_timeouts; /* Request timeouts */
OpenPOWER on IntegriCloud