summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-03-18 12:01:17 +0300
committerDavid S. Miller <davem@davemloft.net>2015-03-18 19:46:40 +0300
commitb06eee59b1e547f0f401820388ca68c624298a64 (patch)
tree50ecdfe97f89703efff2efc352a733e5bb5fee9c /net
parentc2e213cff701fce71a0aba8de82f2c2a4acf52ae (diff)
downloadlinux-b06eee59b1e547f0f401820388ca68c624298a64.tar.xz
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')
-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)