rxrpc: Add per-peer RTT tracker
authorDavid Howells <dhowells@redhat.com>
Wed, 21 Sep 2016 23:41:53 +0000 (00:41 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 22 Sep 2016 00:26:25 +0000 (01:26 +0100)
commitcf1a6474f80735ff4a5d99f3dd68a94dbec8455f
tree8ca17608fce76f66375297f2395b0943d8f1e988
parentf07373ead455a396e15a431bc08d8ce1dac6f1cf
rxrpc: Add per-peer RTT tracker

Add a function to track the average RTT for a peer.  Sources of RTT data
will be added in subsequent patches.

The RTT data will be useful in the future for determining resend timeouts
and for handling the slow-start part of the Rx protocol.

Also add a pair of tracepoints, one to log transmissions to elicit a
response for RTT purposes and one to log responses that contribute RTT
data.

Signed-off-by: David Howells <dhowells@redhat.com>
include/trace/events/rxrpc.h
net/rxrpc/ar-internal.h
net/rxrpc/misc.c
net/rxrpc/peer_event.c