rxrpc: Send an ACK after every few DATA packets we receive
authorDavid Howells <dhowells@redhat.com>
Sat, 24 Sep 2016 17:05:26 +0000 (18:05 +0100)
committerDavid Howells <dhowells@redhat.com>
Sat, 24 Sep 2016 17:05:26 +0000 (18:05 +0100)
commit805b21b929e29192fb5de16154f616bfc1116e3e
treeb48e21a8c4d7b824fe0e9289fe51a9e739a5c46e
parentc6a77ff82fb849534748719f37f3f9086d78ed39
rxrpc: Send an ACK after every few DATA packets we receive

Send an ACK if we haven't sent one for the last two packets we've received.
This keeps the other end apprised of where we've got to - which is
important if they're doing slow-start.

We do this in recvmsg so that we can dispatch a packet directly without the
need to wake up the background thread.

This should possibly be made configurable in future.

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