aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-13 17:36:21 -0400
committerDavid Howells <dhowells@redhat.com>2016-09-13 17:36:21 -0400
commit08a39685a771b4b1108889ea5e4e0a71b51782ba (patch)
tree95a5270231208d66724217606eeee557f12f1c02
parentbed806cb266e3853e12de892553fc29c45f9d28c (diff)
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>
-rw-r--r--net/rxrpc/peer_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/peer_object.c b/net/rxrpc/peer_object.c
index 2efe29a4c232..3e6cd174b53d 100644
--- a/net/rxrpc/peer_object.c
+++ b/net/rxrpc/peer_object.c
@@ -203,6 +203,7 @@ struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
203 */ 203 */
204static void rxrpc_init_peer(struct rxrpc_peer *peer, unsigned long hash_key) 204static void rxrpc_init_peer(struct rxrpc_peer *peer, unsigned long hash_key)
205{ 205{
206 peer->hash_key = hash_key;
206 rxrpc_assess_MTU_size(peer); 207 rxrpc_assess_MTU_size(peer);
207 peer->mtu = peer->if_mtu; 208 peer->mtu = peer->if_mtu;
208 209
@@ -238,7 +239,6 @@ static struct rxrpc_peer *rxrpc_create_peer(struct rxrpc_local *local,
238 239
239 peer = rxrpc_alloc_peer(local, gfp); 240 peer = rxrpc_alloc_peer(local, gfp);
240 if (peer) { 241 if (peer) {
241 peer->hash_key = hash_key;
242 memcpy(&peer->srx, srx, sizeof(*srx)); 242 memcpy(&peer->srx, srx, sizeof(*srx));
243 rxrpc_init_peer(peer, hash_key); 243 rxrpc_init_peer(peer, hash_key);
244 } 244 }