mac80211: enable hash table shrinking
authorJohannes Berg <johannes.berg@intel.com>
Fri, 24 Apr 2015 09:10:10 +0000 (11:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Apr 2015 09:11:57 +0000 (11:11 +0200)
The hashtable behaviour change was merged into the tree
at about the same time as the mac80211 use of rhashtable,
but of course these don't really conflict in the normal
sense. Enable hash table shrinking now.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c

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