diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-01-02 23:00:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-03 14:32:57 -0500 |
commit | f89bd6f87a53ce5a7d60662429591ebac2745c10 (patch) | |
tree | 69dafc1508219d2f3ee44647734db7c046f0b0f7 /net/netlink | |
parent | 97defe1ecf868b8127f8e62395499d6a06e4c4b1 (diff) | |
download | linux-f89bd6f87a53ce5a7d60662429591ebac2745c10.tar.gz linux-f89bd6f87a53ce5a7d60662429591ebac2745c10.tar.bz2 linux-f89bd6f87a53ce5a7d60662429591ebac2745c10.zip |
rhashtable: Supports for nulls marker
In order to allow for wider usage of rhashtable, use a special nulls
marker to terminate each chain. The reason for not using the existing
nulls_list is that the prev pointer usage would not be valid as entries
can be linked in two different buckets at the same time.
The 4 nulls base bits can be set through the rhashtable_params structure
like this:
struct rhashtable_params params = {
[...]
.nulls_base = (1U << RHT_BASE_SHIFT),
};
This reduces the hash length from 32 bits to 27 bits.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions