summaryrefslogtreecommitdiff
path: root/net/rxrpc/input.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-04-28 08:30:47 +0100
committerDavid Howells <dhowells@redhat.com>2022-11-08 16:42:15 +0000
commit589a0c1e0ac31ccba49b214762e444dc015ee1e2 (patch)
treeca24e8723f2ca2705c0fb7e67c41c9b623311604 /net/rxrpc/input.c
parent334dfbfc5a7187c99761df2392dd4cc49c453bea (diff)
rxrpc: Track highest acked serial
Keep track of the highest DATA serial number that has been acked by the peer for future purposes. Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org
Diffstat (limited to 'net/rxrpc/input.c')
-rw-r--r--net/rxrpc/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index 721d847ba92b..4ba678f0c384 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -967,6 +967,10 @@ static void rxrpc_input_ack(struct rxrpc_call *call, struct sk_buff *skb)
call->acks_first_seq = first_soft_ack;
call->acks_prev_seq = prev_pkt;
+ if (buf.ack.reason != RXRPC_ACK_PING &&
+ after(acked_serial, call->acks_highest_serial))
+ call->acks_highest_serial = acked_serial;
+
/* Parse rwind and mtu sizes if provided. */
if (buf.info.rxMTU)
rxrpc_input_ackinfo(call, skb, &buf.info);