• B
    mac80211: mesh: embed known gates list in struct mesh_path · 947c2a0e
    Bob Copeland 提交于
    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: NBob Copeland <me@bobcopeland.com>
    Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
    947c2a0e
mesh.h 13.3 KB