]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
rxrpc: Expedite ping response transmission
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:21:24 +0000 (08:21 +0100)
commit7aa51da7c88d42cc0bb85ab7d01429fbd4e51282
tree7bf36f9dbaf413cb3a7f45d17ac978dec2882602
parent8e83134db4ecb77a1dc3390b60ddeea840a5afbc
rxrpc: Expedite ping response transmission

Expedite the transmission of a response to a PING ACK by sending it from
sendmsg if one is pending.  We're most likely to see a PING ACK during the
client call Tx phase as the other side may use it to determine a number of
parameters, such as the client's receive window size, the RTT and whether
the client is doing slow start (similar to RFC5681).

If we don't expedite it, it's left to the background processing thread to
transmit.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/sendmsg.c