sunrpc: add netns inum and srcaddr to debugfs rpc_xprt info
authorJeff Layton <jlayton@kernel.org>
Wed, 22 Jan 2025 15:18:12 +0000 (10:18 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Wed, 22 Jan 2025 20:53:31 +0000 (15:53 -0500)
commit918b8e3b3ffda3602a0179b7b9b904f89561c03e
tree37c1a6996dc6e099c17007ba3a6f3ed4766d2b9f
parenteb3fabde15bccdf34f1c9b35a83aa4c0dacbb4ca
sunrpc: add netns inum and srcaddr to debugfs rpc_xprt info

The output format should provide a value that matches the one in
the /proc/<pid>/ns/net symlink. This makes it simpler to match the
rpc_xprt and rpc_clnt to a particular container.

Also, when the xprt defines the get_srcaddr operation, use that to
display the source address as well.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
net/sunrpc/debugfs.c