summaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-04-23 17:26:06 +0200
committerJohannes Berg <johannes.berg@intel.com>2015-04-23 17:26:06 +0200
commitebd82b39bf11b38b0b50919c8d4386706b26bff7 (patch)
tree9c147b4d7aedac7bd49b6bcf5ca3d45915c2090c /net/mac80211/sta_info.c
parentmac80211: allow segmentation offloads (diff)
downloadlinux-ebd82b39bf11b38b0b50919c8d4386706b26bff7.tar.xz
linux-ebd82b39bf11b38b0b50919c8d4386706b26bff7.zip
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>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r--net/mac80211/sta_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index 737730abba6d..aec15d746aea 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -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 */