summaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-03-18 10:01:17 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-18 17:46:40 +0100
commitb06eee59b1e547f0f401820388ca68c624298a64 (patch)
tree50ecdfe97f89703efff2efc352a733e5bb5fee9c /net/netlink/af_netlink.c
parentrhashtable: Introduce max_size/min_size (diff)
downloadlinux-b06eee59b1e547f0f401820388ca68c624298a64.tar.xz
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.c2
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)