Skip to content

Commit 446c89a

Browse files
herbertxdavem330
authored andcommitted
tipc: Use rhashtable max/min_size instead of max/min_shift
This patch converts tipc to use rhashtable max/min_size instead of the obsolete max/min_shift. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b06eee5 commit 446c89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/tipc/socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,8 +2286,8 @@ int tipc_sk_rht_init(struct net *net)
22862286
.key_offset = offsetof(struct tipc_sock, portid),
22872287
.key_len = sizeof(u32), /* portid */
22882288
.hashfn = jhash,
2289-
.max_shift = 20, /* 1M */
2290-
.min_shift = 8, /* 256 */
2289+
.max_size = 1048576,
2290+
.min_size = 256,
22912291
};
22922292

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

0 commit comments

Comments
 (0)