diff options
author | David Howells <dhowells@redhat.com> | 2020-08-20 16:13:00 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-08-20 19:21:28 +0200 |
commit | 1d4adfaf65746203861c72d9d78de349eb97d528 (patch) | |
tree | 324c9592cfe0c5c63a2fb2d29d74db421cab1a88 /include | |
parent | rxrpc: Fix loss of RTT samples due to interposed ACK (diff) | |
download | linux-1d4adfaf65746203861c72d9d78de349eb97d528.tar.xz linux-1d4adfaf65746203861c72d9d78de349eb97d528.zip |
rxrpc: Make rxrpc_kernel_get_srtt() indicate validity
Fix rxrpc_kernel_get_srtt() to indicate the validity of the returned
smoothed RTT. If we haven't had any valid samples yet, the SRTT isn't
useful.
Fixes: c410bf01933e ("rxrpc: Fix the excessive initial retransmission timeout")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/af_rxrpc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/af_rxrpc.h b/include/net/af_rxrpc.h index 91eacbdcf33d..f6abcc0bbd6e 100644 --- a/include/net/af_rxrpc.h +++ b/include/net/af_rxrpc.h @@ -59,7 +59,7 @@ bool rxrpc_kernel_abort_call(struct socket *, struct rxrpc_call *, void rxrpc_kernel_end_call(struct socket *, struct rxrpc_call *); void rxrpc_kernel_get_peer(struct socket *, struct rxrpc_call *, struct sockaddr_rxrpc *); -u32 rxrpc_kernel_get_srtt(struct socket *, struct rxrpc_call *); +bool rxrpc_kernel_get_srtt(struct socket *, struct rxrpc_call *, u32 *); int rxrpc_kernel_charge_accept(struct socket *, rxrpc_notify_rx_t, rxrpc_user_attach_call_t, unsigned long, gfp_t, unsigned int); |