]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: embed known gates list in struct mesh_path
authorBob Copeland <me@bobcopeland.com>
Mon, 29 Feb 2016 01:03:59 +0000 (20:03 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:56:32 +0000 (10:56 +0200)
commit0fd82281194cb5f5d0dc1ae8d72eff16d615ac60
treee4c759bffaf270846864a5aae7999e6c884c03d4
parent88b865777b1bc5c32bb033ad9dc4fbaba17141dc
mac80211: mesh: embed known gates list in struct mesh_path

The mesh path table uses a struct mesh_node in its hlists in
order to support a resizable hash table: the mesh_node provides
an indirection to the actual mesh path so that two different
bucket lists can point to the same path entry.

However, for the known gates list, we don't need this indirection
because there is ever only one list.  So we can just embed the
hlist_node in the mesh path itself, which simplifies things a bit
and saves a linear search whenever we need to find an item in
the list.

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