diff options
author | Bob Copeland <me@bobcopeland.com> | 2016-03-18 22:11:30 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-04-05 21:34:51 +0200 |
commit | 18b27ff7d2e232b0f07f2f51aa8052ff2a617908 (patch) | |
tree | 78c8d16a5ef5430a1eaf062b6ec296fbca033972 /net/mac80211/mesh.h | |
parent | 47a0489ce1e518f4936c7fedb93b3d2abd7ccd2e (diff) | |
download | linux-stable-18b27ff7d2e232b0f07f2f51aa8052ff2a617908.tar.gz linux-stable-18b27ff7d2e232b0f07f2f51aa8052ff2a617908.tar.bz2 linux-stable-18b27ff7d2e232b0f07f2f51aa8052ff2a617908.zip |
mac80211: mesh: embed gates hlist head directly
Since we have converted the mesh path tables to rhashtable, we are
no longer swapping out the entire mesh_pathtbl pointer with RCU.
As a result, we no longer need indirection to the hlist head for
the gates list and can simply embed it, saving a pair of
pointer-sized allocations.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.h')
-rw-r--r-- | net/mac80211/mesh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index bc3f9a32b5a4..46b540a25d9d 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h @@ -134,7 +134,7 @@ struct mesh_path { */ struct mesh_table { atomic_t entries; /* Up to MAX_MESH_NEIGHBOURS */ - struct hlist_head *known_gates; + struct hlist_head known_gates; spinlock_t gates_lock; struct rhashtable rhead; |