net_sched: reduce fifo qdisc size
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 3 Mar 2011 19:10:02 +0000 (11:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2011 19:10:02 +0000 (11:10 -0800)
commitd276055c4e90a7278cd5167ba9755c9b214bcff7
treed99d4e808f880921660dfdf73af8e97e3a6fdba9
parentc53fa1ed92cd671a1dfb1e7569e9ab672612ddc6
net_sched: reduce fifo qdisc size

Because of various alignements [SLUB / qdisc], we use 512 bytes of
memory for one {p|b}fifo qdisc, instead of 256 bytes on 64bit arches and
192 bytes on 32bit ones.

Move the "u32 limit" inside "struct Qdisc" (no impact on other qdiscs)

Change qdisc_alloc(), first trying a regular allocation before an
oversized one.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_fifo.c
net/sched/sch_generic.c