mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
netlink: Use rhashtable max_size instead of max_shift
This patch converts netlink to use rhashtable max_size instead of the obsolete max_shift. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c2e213cff7
commit
b06eee59b1
@ -3123,7 +3123,7 @@ static int __init netlink_proto_init(void)
|
||||
.key_offset = offsetof(struct netlink_sock, portid),
|
||||
.key_len = sizeof(u32), /* portid */
|
||||
.hashfn = jhash,
|
||||
.max_shift = 16, /* 64K */
|
||||
.max_size = 65536,
|
||||
};
|
||||
|
||||
if (err != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user