mac80211: make station hash table max_size configurable
Allow debug builds to configure the station hash table maximum size in order to run with hash collisions in limited scenarios such as hwsim testing. The default remains 0 which effectively means no limit. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -70,6 +70,7 @@ static const struct rhashtable_params sta_rht_params = {
|
||||
.key_offset = offsetof(struct sta_info, sta.addr),
|
||||
.key_len = ETH_ALEN,
|
||||
.hashfn = sta_addr_hash,
|
||||
.max_size = CONFIG_MAC80211_STA_HASH_MAX_SIZE,
|
||||
};
|
||||
|
||||
/* Caller must hold local->sta_mtx */
|
||||
|
Reference in New Issue
Block a user