]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rxrpc: Add stats procfile and DATA packet stats
authorDavid Howells <dhowells@redhat.com>
Wed, 11 May 2022 13:01:25 +0000 (14:01 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 8 Nov 2022 16:42:15 +0000 (16:42 +0000)
commitb015424695f03a9fa5862d09c267ed458e256300
tree5a9dfc7aaf5028ea5639bac6a58999b562cf17da
parent589a0c1e0ac31ccba49b214762e444dc015ee1e2
rxrpc: Add stats procfile and DATA packet stats

Add a procfile, /proc/net/rxrpc/stats, to display some statistics about
what rxrpc has been doing.  Writing a blank line to the stats file will
clear the increment-only counters.  Allocated resource counters don't get
cleared.

Add some counters to count various things about DATA packets, including the
number created, transmitted and retransmitted and the number received, the
number of ACK-requests markings and the number of jumbo packets received.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
net/rxrpc/ar-internal.h
net/rxrpc/call_event.c
net/rxrpc/input.c
net/rxrpc/net_ns.c
net/rxrpc/output.c
net/rxrpc/proc.c
net/rxrpc/sendmsg.c