aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_plug.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2014-03-17 20:20:49 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-18 14:17:55 -0400
commitd37d8ac17d38d389375060416ceedd5b19d5255c (patch)
treeebc4defe9fa6cef650f2c231a3cba5405928cede /net/sched/sch_plug.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next (diff)
downloadlinux-dev-d37d8ac17d38d389375060416ceedd5b19d5255c.tar.xz
linux-dev-d37d8ac17d38d389375060416ceedd5b19d5255c.zip
net: sched: use no more than one page in struct fw_head
In commit b4e9b520ca5d ("[NET_SCHED]: Add mask support to fwmark classifier") Patrick added an u32 field in fw_head, making it slightly bigger than one page. Lets use 256 slots to make fw_hash() more straight forward, and move @mask to the beginning of the structure as we often use a small number of skb->mark. @mask and first hash buckets share the same cache line. This brings back the memory usage to less than 4000 bytes, and permits John to add a rcu_head at the end of the structure later without any worry. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Thomas Graf <tgraf@suug.ch> Cc: John Fastabend <john.fastabend@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_plug.c')
0 files changed, 0 insertions, 0 deletions