diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-03-03 14:10:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-03 14:10:02 -0500 |
commit | d276055c4e90a7278cd5167ba9755c9b214bcff7 (patch) | |
tree | d99d4e808f880921660dfdf73af8e97e3a6fdba9 /include/net | |
parent | c53fa1ed92cd671a1dfb1e7569e9ab672612ddc6 (diff) |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sch_generic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 16626a04cb03..1934634f8896 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
@@ -83,6 +83,7 @@ struct Qdisc { | |||
83 | struct gnet_stats_queue qstats; | 83 | struct gnet_stats_queue qstats; |
84 | struct rcu_head rcu_head; | 84 | struct rcu_head rcu_head; |
85 | spinlock_t busylock; | 85 | spinlock_t busylock; |
86 | u32 limit; | ||
86 | }; | 87 | }; |
87 | 88 | ||
88 | static inline bool qdisc_is_running(const struct Qdisc *qdisc) | 89 | static inline bool qdisc_is_running(const struct Qdisc *qdisc) |