Skip to content

Commit b06eee5

Browse files
herbertxdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c2e213c commit b06eee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netlink/af_netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3123,7 +3123,7 @@ static int __init netlink_proto_init(void)
31233123
.key_offset = offsetof(struct netlink_sock, portid),
31243124
.key_len = sizeof(u32), /* portid */
31253125
.hashfn = jhash,
3126-
.max_shift = 16, /* 64K */
3126+
.max_size = 65536,
31273127
};
31283128

31293129
if (err != 0)

0 commit comments

Comments
 (0)