]> 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)
commit319641b0a61b78297981b9909a9f90444b7f30da
tree24c1d4a63195cca1ca1398ca5501d61a1df6919c
parent81248e0b63904c5b615533f1fb13129c3a62027e
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