Skip to content

Commit

Permalink
tipc: Use rhashtable max/min_size instead of max/min_shift
Browse files Browse the repository at this point in the history
This patch converts tipc to use rhashtable max/min_size instead of
the obsolete max/min_shift.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 18, 2015
1 parent b06eee5 commit 446c89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2286,8 +2286,8 @@ int tipc_sk_rht_init(struct net *net)
.key_offset = offsetof(struct tipc_sock, portid),
.key_len = sizeof(u32), /* portid */
.hashfn = jhash,
.max_shift = 20, /* 1M */
.min_shift = 8, /* 256 */
.max_size = 1048576,
.min_size = 256,
};

return rhashtable_init(&tn->sk_rht, &rht_params);
Expand Down

0 comments on commit 446c89a

Please sign in to comment.