rxrpc: Fix RTT determination to use any ACK as a source
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Nov 2023 13:12:58 +0000 (13:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Nov 2023 02:50:33 +0000 (02:50 +0000)
commit3798680f2fbbe0ca3ab6138b34e0d161c36497ee
tree6cacdd160ff9295677cbfab9093345139e92a850
parent75a50c4f5b957a34dedb7c8cce52b582a9162828
rxrpc: Fix RTT determination to use any ACK as a source

Fix RTT determination to be able to use any type of ACK as the response
from which RTT can be calculated provided its ack.serial is non-zero and
matches the serial number of an outgoing DATA or ACK packet.  This
shouldn't be limited to REQUESTED-type ACKs as these can have other types
substituted for them for things like duplicate or out-of-order packets.

Fixes: 4700c4d80b7b ("rxrpc: Fix loss of RTT samples due to interposed ACK")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: "David S. Miller" <davem@davemloft.net>
cc: Eric Dumazet <edumazet@google.com>
cc: Jakub Kicinski <kuba@kernel.org>
cc: Paolo Abeni <pabeni@redhat.com>
cc: linux-afs@lists.infradead.org
cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/rxrpc.h
net/rxrpc/input.c