]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea420496c47566385cbac4a2e5e405828a7647eb
tree24c1d4a63195cca1ca1398ca5501d61a1df6919c
parentbe2ca319fe05161181e2f5172ad00782f80c57b7
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