diff options
author | Phil Sutter <phil@nwl.cc> | 2015-11-20 18:17:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 12:36:08 -0500 |
commit | 95e435afefe98b8ef6ae8b764879a064cd931a5c (patch) | |
tree | 2b9182d7cf01814f2727c5241072b6d93884d57a /lib/test_static_keys.c | |
parent | 9e9089e5a2d788db417d4d1f836eecc2fc44e9ff (diff) | |
download | linux-95e435afefe98b8ef6ae8b764879a064cd931a5c.tar.bz2 |
rhashtable-test: calculate max_entries value by default
A maximum table size of 64k entries is insufficient for the multiple
threads test even in default configuration (10 threads * 50000 objects =
500000 objects in total). Since we know how many objects will be
inserted, calculate the max size unless overridden by parameter.
Note that specifying the exact number of objects upon table init won't
suffice as that value is being rounded down to the next power of two -
anticipate this by rounding up to the next power of two in beforehand.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_static_keys.c')
0 files changed, 0 insertions, 0 deletions