tipc: Use rhashtable max/min_size instead of max/min_shift
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 18 Mar 2015 09:01:18 +0000 (20:01 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 16:46:40 +0000 (12:46 -0400)
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>
net/tipc/socket.c

index 813847d25a49b4ea312b0a162a61bdb18ac11499..d7a6c10202e99780c8c83d94867893b7c6366167 100644 (file)
@@ -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);