提交 b06eee59 编写于 作者: H Herbert Xu 提交者: David S. Miller

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: NHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c2e213cf
...@@ -3123,7 +3123,7 @@ static int __init netlink_proto_init(void) ...@@ -3123,7 +3123,7 @@ static int __init netlink_proto_init(void)
.key_offset = offsetof(struct netlink_sock, portid), .key_offset = offsetof(struct netlink_sock, portid),
.key_len = sizeof(u32), /* portid */ .key_len = sizeof(u32), /* portid */
.hashfn = jhash, .hashfn = jhash,
.max_shift = 16, /* 64K */ .max_size = 65536,
}; };
if (err != 0) if (err != 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册