rxrpc: Reduce the number of ACK-Requests sent
authorDavid Howells <dhowells@redhat.com>
Wed, 21 Sep 2016 23:29:31 +0000 (00:29 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 22 Sep 2016 07:49:20 +0000 (08:49 +0100)
commit0d4b103c008ac9f6f438d2618c155f6e868e5a67
tree24c1d4a63195cca1ca1398ca5501d61a1df6919c
parent50235c4b5a2fb9a9690f02cd1dea6ca047d7f79e
rxrpc: Reduce the number of ACK-Requests sent

Reduce the number of ACK-Requests we set on DATA packets that we're sending
to reduce network traffic.  We set the flag on odd-numbered DATA packets to
start off the RTT cache until we have at least three entries in it and then
probe once per second thereafter to keep it topped up.

This could be made tunable in future.

Note that from this point, the RXRPC_REQUEST_ACK flag is set on DATA
packets as we transmit them and not stored statically in the sk_buff.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-internal.h
net/rxrpc/output.c
net/rxrpc/peer_object.c
net/rxrpc/sendmsg.c