]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: move path tables into if_mesh
authorBob Copeland <me@bobcopeland.com>
Mon, 29 Feb 2016 01:03:56 +0000 (20:03 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:56:30 +0000 (10:56 +0200)
commit7f6d69abb21f3ec177b3a2613f3066fe6de3e23f
tree903aff9c23f928cc3c1f5811ac4ff129d0206546
parentcfe076eeabe2db5d1c5fbd5bd3d613880df0edc5
mac80211: mesh: move path tables into if_mesh

The mesh path and mesh gate hashtables are global, containing
all of the mpaths for every mesh interface, but the paths are
all tied logically to a single interface.  The common case is
just a single mesh interface, so optimize for that by moving
the global hashtable into the per-interface struct.

Doing so allows us to drop sdata pointer comparisons inside
the lookups and also saves a few bytes of BSS and data.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_pathtbl.c
net/mac80211/tx.c