summaryrefslogtreecommitdiff
path: root/net/rxrpc/ar-internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-06-29 14:40:39 +0100
committerDavid Howells <dhowells@redhat.com>2016-07-06 10:49:57 +0100
commitd991b4a32f65076efaf78739c4a46406ca8c7e79 (patch)
treee300115d7a3a8fcd6c35eab1b409b81f6719cedd /net/rxrpc/ar-internal.h
parent7877a4a4bdf0d782276f1cba868878aee77718ee (diff)
downloadlwn-d991b4a32f65076efaf78739c4a46406ca8c7e79.tar.gz
lwn-d991b4a32f65076efaf78739c4a46406ca8c7e79.zip
rxrpc: Move peer lookup from call-accept to new-incoming-conn
Move the lookup of a peer from a call that's being accepted into the function that creates a new incoming connection. This will allow us to avoid incrementing the peer's usage count in some cases in future. Note that I haven't bother to integrate rxrpc_get_addr_from_skb() with rxrpc_extract_addr_from_skb() as I'm going to delete the former in the very near future. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-internal.h')
-rw-r--r--net/rxrpc/ar-internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h
index e1af258a7ac9..ad48f851b40c 100644
--- a/net/rxrpc/ar-internal.h
+++ b/net/rxrpc/ar-internal.h
@@ -607,7 +607,7 @@ static inline void rxrpc_queue_conn(struct rxrpc_connection *conn)
* conn_service.c
*/
struct rxrpc_connection *rxrpc_incoming_connection(struct rxrpc_local *,
- struct rxrpc_peer *,
+ struct sockaddr_rxrpc *,
struct sk_buff *);
/*
@@ -773,6 +773,7 @@ static inline void rxrpc_sysctl_exit(void) {}
*/
void rxrpc_get_addr_from_skb(struct rxrpc_local *, const struct sk_buff *,
struct sockaddr_rxrpc *);
+int rxrpc_extract_addr_from_skb(struct sockaddr_rxrpc *, struct sk_buff *);
/*
* debug tracing