diff options
author | David Howells <dhowells@redhat.com> | 2022-05-11 14:01:25 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2022-11-08 16:42:15 +0000 |
commit | f2a676d10038e8f3913dc576397b9c9efb190afd (patch) | |
tree | d67be5a8fe07204a50b9918461a65a8645be563c /net/rxrpc/call_event.c | |
parent | b015424695f03a9fa5862d09c267ed458e256300 (diff) | |
download | lwn-f2a676d10038e8f3913dc576397b9c9efb190afd.tar.gz lwn-f2a676d10038e8f3913dc576397b9c9efb190afd.zip |
rxrpc: Record statistics about ACK types
Record statistics about the different types of ACKs that have been
transmitted and received and the number of ACKs that have been filled out
and transmitted or that have been skipped.
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/call_event.c')
-rw-r--r-- | net/rxrpc/call_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c index c5b3ae1fe80b..70f70a0393f7 100644 --- a/net/rxrpc/call_event.c +++ b/net/rxrpc/call_event.c @@ -50,6 +50,8 @@ static void __rxrpc_propose_ACK(struct rxrpc_call *call, u8 ack_reason, unsigned long expiry = rxrpc_soft_ack_delay; s8 prior = rxrpc_ack_priority[ack_reason]; + rxrpc_inc_stat(call->rxnet, stat_tx_acks[ack_reason]); + /* Pings are handled specially because we don't want to accidentally * lose a ping response by subsuming it into a ping. */ |