|
@@ -66,6 +66,7 @@
|
|
|
|
|
|
static const struct rhashtable_params sta_rht_params = {
|
|
static const struct rhashtable_params sta_rht_params = {
|
|
.nelem_hint = 3, /* start small */
|
|
.nelem_hint = 3, /* start small */
|
|
|
|
+ .automatic_shrinking = true,
|
|
.head_offset = offsetof(struct sta_info, hash_node),
|
|
.head_offset = offsetof(struct sta_info, hash_node),
|
|
.key_offset = offsetof(struct sta_info, sta.addr),
|
|
.key_offset = offsetof(struct sta_info, sta.addr),
|
|
.key_len = ETH_ALEN,
|
|
.key_len = ETH_ALEN,
|