From: Herbert Xu Date: Wed, 18 Mar 2015 09:01:17 +0000 (+1100) Subject: netlink: Use rhashtable max_size instead of max_shift X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b06eee59b1e547f0f401820388ca68c624298a64;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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)