diff options
| author | Herbert Xu <[email protected]> | 2015-03-14 02:57:24 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-15 05:35:34 +0000 |
| commit | 63d512d0cffcae40505d9448abd509972465e846 (patch) | |
| tree | 61aa0d3763daf884a089e41f8f0f7b829b9357c4 /net/switchdev/switchdev.c | |
| parent | rhashtable: Free bucket tables asynchronously after rehash (diff) | |
| download | kernel-63d512d0cffcae40505d9448abd509972465e846.tar.gz kernel-63d512d0cffcae40505d9448abd509972465e846.zip | |
rhashtable: Add rehash counter to bucket_table
This patch adds a rehash counter to bucket_table to indicate
the last bucket that has been rehashed. This serves two purposes:
1. Any bucket that has been rehashed can never gain a new object.
2. If the rehash counter reaches the size of the table, the table
will forever remain empty.
This patch also downsizes bucket_table->size to an unsigned int
since we do not support sizes greater than 32 bits yet.
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
