mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
rxrpc: Make sure we initialise the peer hash key
Peer records created for incoming connections weren't getting their hash key set. This meant that incoming calls wouldn't see more than one DATA packet - which is not a problem for AFS CM calls with small request data blobs. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
bed806cb26
commit
08a39685a7
@ -203,6 +203,7 @@ struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
|
|||||||
*/
|
*/
|
||||||
static void rxrpc_init_peer(struct rxrpc_peer *peer, unsigned long hash_key)
|
static void rxrpc_init_peer(struct rxrpc_peer *peer, unsigned long hash_key)
|
||||||
{
|
{
|
||||||
|
peer->hash_key = hash_key;
|
||||||
rxrpc_assess_MTU_size(peer);
|
rxrpc_assess_MTU_size(peer);
|
||||||
peer->mtu = peer->if_mtu;
|
peer->mtu = peer->if_mtu;
|
||||||
|
|
||||||
@ -238,7 +239,6 @@ static struct rxrpc_peer *rxrpc_create_peer(struct rxrpc_local *local,
|
|||||||
|
|
||||||
peer = rxrpc_alloc_peer(local, gfp);
|
peer = rxrpc_alloc_peer(local, gfp);
|
||||||
if (peer) {
|
if (peer) {
|
||||||
peer->hash_key = hash_key;
|
|
||||||
memcpy(&peer->srx, srx, sizeof(*srx));
|
memcpy(&peer->srx, srx, sizeof(*srx));
|
||||||
rxrpc_init_peer(peer, hash_key);
|
rxrpc_init_peer(peer, hash_key);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user