netlink: Use rhashtable max_size instead of max_shift
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 18 Mar 2015 09:01:17 +0000 (20:01 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 16:46:40 +0000 (12:46 -0400)
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>
net/netlink/af_netlink.c

index 6b0f21950e09d41969d3922220dab2eb3a3d63ae..d97aed628bda95416bf9474939f215a7981817b8 100644 (file)
@@ -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)