diff options
author | David Howells <dhowells@redhat.com> | 2022-05-21 10:03:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-22 22:30:53 +0200 |
commit | 9a3dedcf18096e8f7f22b8777d78c4acfdea1651 (patch) | |
tree | 014d913916b462128863f08327d6d7d410e2ce3a /.gitattributes | |
parent | rxrpc: Don't let ack.previousPacket regress (diff) | |
download | linux-9a3dedcf18096e8f7f22b8777d78c4acfdea1651.tar.xz linux-9a3dedcf18096e8f7f22b8777d78c4acfdea1651.zip |
rxrpc: Fix decision on when to generate an IDLE ACK
Fix the decision on when to generate an IDLE ACK by keeping a count of the
number of packets we've received, but not yet soft-ACK'd, and the number of
packets we've processed, but not yet hard-ACK'd, rather than trying to keep
track of which DATA sequence numbers correspond to those points.
We then generate an ACK when either counter exceeds 2. The counters are
both cleared when we transcribe the information into any sort of ACK packet
for transmission. IDLE and DELAY ACKs are skipped if both counters are 0
(ie. no change).
Fixes: 805b21b929e2 ("rxrpc: Send an ACK after every few DATA packets we receive")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions