rxrpc: Allow list of in-use local UDP endpoints to be viewed in /proc
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 07:45:15 +0000 (08:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 20:03:01 +0000 (21:03 +0100)
commit33912c2639ad76660988c8ca97e4d18fca89b668
tree92c5f3666a6efccdcdfac23499bf293547e5724b
parent0598cec957abbdd47b8eb7dceb51d54ac465417d
rxrpc: Allow list of in-use local UDP endpoints to be viewed in /proc

Allow the list of in-use local UDP endpoints in the current network
namespace to be viewed in /proc.

To aid with this, the endpoint list is converted to an hlist and RCU-safe
manipulation is used so that the list can be read with only the RCU
read lock held.

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>
net/rxrpc/ar-internal.h
net/rxrpc/local_object.c
net/rxrpc/net_ns.c
net/rxrpc/proc.c