mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08: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