summaryrefslogtreecommitdiff
path: root/net/rxrpc/call_event.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-05-11 16:01:25 +0300
committerDavid Howells <dhowells@redhat.com>2022-11-08 19:42:15 +0300
commitf2a676d10038e8f3913dc576397b9c9efb190afd (patch)
treed67be5a8fe07204a50b9918461a65a8645be563c /net/rxrpc/call_event.c
parentb015424695f03a9fa5862d09c267ed458e256300 (diff)
downloadlinux-f2a676d10038e8f3913dc576397b9c9efb190afd.tar.xz
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.c2
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.
*/