rxrpc: Allow the app to store private data on peer structs
authorDavid Howells <dhowells@redhat.com>
Thu, 23 Jan 2025 09:00:33 +0000 (09:00 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 10 Mar 2025 09:47:15 +0000 (09:47 +0000)
commitf3a123b25429dc03508e3bf598373005220b7203
tree6455a2b2c47dc2582b56e295466bdab9effd7f98
parent469c82b558628482002e4819d35b7670f0a989fd
rxrpc: Allow the app to store private data on peer structs

Provide a way for the application (e.g. the afs filesystem) to store
private data on the rxrpc_peer structs for later retrieval via the call
object.

This will allow afs to store a pointer to the afs_server object on the
rxrpc_peer struct, thereby obviating the need for afs to keep lookup tables
by which it can associate an incoming call with server that transmitted it.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Jakub Kicinski <kuba@kernel.org>
cc: "David S. Miller" <davem@davemloft.net>
cc: Eric Dumazet <edumazet@google.com>
cc: Paolo Abeni <pabeni@redhat.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20250224234154.2014840-13-dhowells@redhat.com/
Link: https://lore.kernel.org/r/20250310094206.801057-9-dhowells@redhat.com/
include/net/af_rxrpc.h
net/rxrpc/ar-internal.h
net/rxrpc/peer_object.c