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:
Herbert Xu 2015-03-18 20:01:17 +11:00 committed by David S. Miller
parent c2e213cff7
commit b06eee59b1
1 changed files with 1 additions and 1 deletions

View File

@ -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)