rxrpc: Obtain RTT data by requesting ACKs on DATA packets
In addition to sending a PING ACK to gain RTT data, we can set the
RXRPC_REQUEST_ACK flag on a DATA packet and get a REQUESTED-ACK ACK. The
ACK packet contains the serial number of the packet it is in response to,
so we can look through the Tx buffer for a matching DATA packet.
This requires that the data packets be stamped with the time of
transmission as a ktime rather than having the resend_at time in jiffies.
This further requires the resend code to do the resend determination in
ktimes and convert to jiffies to set the timer.
Signed-off-by:
David Howells <dhowells@redhat.com>
Showing
- net/rxrpc/ar-internal.h 3 additions, 4 deletionsnet/rxrpc/ar-internal.h
- net/rxrpc/call_event.c 9 additions, 10 deletionsnet/rxrpc/call_event.c
- net/rxrpc/input.c 35 additions, 0 deletionsnet/rxrpc/input.c
- net/rxrpc/misc.c 4 additions, 2 deletionsnet/rxrpc/misc.c
- net/rxrpc/output.c 5 additions, 2 deletionsnet/rxrpc/output.c
- net/rxrpc/sendmsg.c 0 additions, 1 deletionnet/rxrpc/sendmsg.c
- net/rxrpc/sysctl.c 1 addition, 1 deletionnet/rxrpc/sysctl.c
Loading
Please register or sign in to comment