diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-18 20:01:17 +1100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-18 12:46:40 -0400 |
commit | b06eee59b1e547f0f401820388ca68c624298a64 (patch) | |
tree | 50ecdfe97f89703efff2efc352a733e5bb5fee9c /net/netlink/af_netlink.c | |
parent | c2e213cff701fce71a0aba8de82f2c2a4acf52ae (diff) | |
download | linux-b06eee59b1e547f0f401820388ca68c624298a64.tar.gz linux-b06eee59b1e547f0f401820388ca68c624298a64.tar.bz2 linux-b06eee59b1e547f0f401820388ca68c624298a64.zip |
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>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 6b0f21950e09..d97aed628bda 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -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) |