diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-28 18:07:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 18:07:55 -0400 |
commit | cb28a1bbdb4790378e7366d6c9ee1d2340b84f92 (patch) | |
tree | 316436f77dac75335fd2c3ef5f109e71606c50d3 /include/net/pkt_sched.h | |
parent | b6d4f7e3ef25beb8c658c97867d98883e69dc544 (diff) | |
parent | f934fb19ef34730263e6afc01e8ec27a8a71470f (diff) |
Merge branch 'linus' into core/generic-dma-coherent
Conflicts:
arch/x86/Kconfig
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 46fb4d80c74a..6affcfaa123e 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
@@ -72,6 +72,10 @@ extern void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); | |||
72 | extern struct Qdisc_ops pfifo_qdisc_ops; | 72 | extern struct Qdisc_ops pfifo_qdisc_ops; |
73 | extern struct Qdisc_ops bfifo_qdisc_ops; | 73 | extern struct Qdisc_ops bfifo_qdisc_ops; |
74 | 74 | ||
75 | extern int fifo_set_limit(struct Qdisc *q, unsigned int limit); | ||
76 | extern struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, | ||
77 | unsigned int limit); | ||
78 | |||
75 | extern int register_qdisc(struct Qdisc_ops *qops); | 79 | extern int register_qdisc(struct Qdisc_ops *qops); |
76 | extern int unregister_qdisc(struct Qdisc_ops *qops); | 80 | extern int unregister_qdisc(struct Qdisc_ops *qops); |
77 | extern struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle); | 81 | extern struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle); |
@@ -79,14 +83,14 @@ extern struct Qdisc *qdisc_lookup_class(struct net_device *dev, u32 handle); | |||
79 | extern struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, | 83 | extern struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, |
80 | struct nlattr *tab); | 84 | struct nlattr *tab); |
81 | extern void qdisc_put_rtab(struct qdisc_rate_table *tab); | 85 | extern void qdisc_put_rtab(struct qdisc_rate_table *tab); |
86 | extern void qdisc_put_stab(struct qdisc_size_table *tab); | ||
82 | 87 | ||
83 | extern void __qdisc_run(struct net_device *dev); | 88 | extern void __qdisc_run(struct Qdisc *q); |
84 | 89 | ||
85 | static inline void qdisc_run(struct net_device *dev) | 90 | static inline void qdisc_run(struct Qdisc *q) |
86 | { | 91 | { |
87 | if (!netif_queue_stopped(dev) && | 92 | if (!test_and_set_bit(__QDISC_STATE_RUNNING, &q->state)) |
88 | !test_and_set_bit(__LINK_STATE_QDISC_RUNNING, &dev->state)) | 93 | __qdisc_run(q); |
89 | __qdisc_run(dev); | ||
90 | } | 94 | } |
91 | 95 | ||
92 | extern int tc_classify_compat(struct sk_buff *skb, struct tcf_proto *tp, | 96 | extern int tc_classify_compat(struct sk_buff *skb, struct tcf_proto *tp, |