diff options
author | 2024-12-04 07:46:58 +0000 | |
---|---|---|
committer | 2024-12-09 13:48:30 -0800 | |
commit | 0130eff911b13e0ad5fc2eebd44833cacd5a8b0b (patch) | |
tree | e0b499c55f9c3807065a0be5dc880dca6e5741a2 /net/rxrpc | |
parent | rxrpc: Fix the calculation and use of RTO (diff) | |
download | wireguard-linux-0130eff911b13e0ad5fc2eebd44833cacd5a8b0b.tar.xz wireguard-linux-0130eff911b13e0ad5fc2eebd44833cacd5a8b0b.zip |
rxrpc: Fix initial resend timeout
The constant for the initial resend timeout is in milliseconds, but the
variable it's assigned to is in microseconds. Fix the constant to be in
microseconds.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/rtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/rtt.c b/net/rxrpc/rtt.c index 3f1ec8e420a6..aff75e168de8 100644 --- a/net/rxrpc/rtt.c +++ b/net/rxrpc/rtt.c @@ -12,7 +12,7 @@ #include "ar-internal.h" #define RXRPC_RTO_MAX (120 * USEC_PER_SEC) -#define RXRPC_TIMEOUT_INIT ((unsigned int)(1 * MSEC_PER_SEC)) /* RFC6298 2.1 initial RTO value */ +#define RXRPC_TIMEOUT_INIT ((unsigned int)(1 * USEC_PER_SEC)) /* RFC6298 2.1 initial RTO value */ #define rxrpc_jiffies32 ((u32)jiffies) /* As rxrpc_jiffies32 */ static u32 rxrpc_rto_min_us(struct rxrpc_peer *peer) |