diff options
author | Bob Copeland | 2016-03-19 03:11:29 +0100 |
---|---|---|
committer | Johannes Berg | 2016-04-05 21:34:51 +0200 |
commit | 47a0489ce1e518f4936c7fedb93b3d2abd7ccd2e (patch) | |
tree | abce8be6a632b789e77f66933b3bf128fa9fe948 /net/mac80211/mesh_pathtbl.c | |
parent | mac80211: mesh: handle failed alloc for rmc cache (diff) | |
download | kernel-qcow2-linux-47a0489ce1e518f4936c7fedb93b3d2abd7ccd2e.tar.gz kernel-qcow2-linux-47a0489ce1e518f4936c7fedb93b3d2abd7ccd2e.tar.xz kernel-qcow2-linux-47a0489ce1e518f4936c7fedb93b3d2abd7ccd2e.zip |
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>
Diffstat (limited to 'net/mac80211/mesh_pathtbl.c')
0 files changed, 0 insertions, 0 deletions