]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Preset timestamp on Tx sk_buffs
authorDavid Howells <dhowells@redhat.com>
Fri, 23 Sep 2016 12:17:33 +0000 (13:17 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 23 Sep 2016 12:17:52 +0000 (13:17 +0100)
commitacb961c0d92d5707dd71d2a489a3e2013487199e
tree0085b06165816601606819a93e416cd35a6f4fa0
parent557cb96deddec639320e60a3e84702902b38b8fd
rxrpc: Preset timestamp on Tx sk_buffs

Set the timestamp on sk_buffs holding packets to be transmitted before
queueing them because the moment the packet is on the queue it can be seen
by the retransmission algorithm - which may see a completely random
timestamp.

If the retransmission algorithm sees such a timestamp, it may retransmit
the packet and, in future, tell the congestion management algorithm that
the retransmit timer expired.

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