aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-03-18 05:01:17 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-18 12:46:40 -0400
commitb06eee59b1e547f0f401820388ca68c624298a64 (patch)
tree50ecdfe97f89703efff2efc352a733e5bb5fee9c /net/netlink
parentc2e213cff701fce71a0aba8de82f2c2a4acf52ae (diff)
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')
-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)
3123 .key_offset = offsetof(struct netlink_sock, portid), 3123 .key_offset = offsetof(struct netlink_sock, portid),
3124 .key_len = sizeof(u32), /* portid */ 3124 .key_len = sizeof(u32), /* portid */
3125 .hashfn = jhash, 3125 .hashfn = jhash,
3126 .max_shift = 16, /* 64K */ 3126 .max_size = 65536,
3127 }; 3127 };
3128 3128
3129 if (err != 0) 3129 if (err != 0)