mac80211: mesh: use hlist for rmc cache
authorBob Copeland <me@bobcopeland.com>
Sat, 19 Mar 2016 02:11:29 +0000 (22:11 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 19:34:51 +0000 (21:34 +0200)
commit47a0489ce1e518f4936c7fedb93b3d2abd7ccd2e
treeabce8be6a632b789e77f66933b3bf128fa9fe948
parent0aa7fabbd5d9da1f8a8fdc3e2837c532bcfa5664
mac80211: mesh: use hlist for rmc cache

The RMC cache has 256 list heads plus a u32, which puts it at the
unfortunate size of 4104 bytes with padding.  kmalloc() will then
round this up to the next power-of-two, so we wind up actually
using two pages here where most of the second is wasted.

Switch to hlist heads here to reduce the structure size down to
fit within a page.

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