diff options
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 388bf8b6d060..59ec3cd15d68 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
@@ -64,8 +64,8 @@ struct qdisc_watchdog { | |||
64 | struct Qdisc *qdisc; | 64 | struct Qdisc *qdisc; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | extern void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc); | 67 | void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc); |
68 | extern void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires); | 68 | void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires); |
69 | 69 | ||
70 | static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, | 70 | static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, |
71 | psched_time_t expires) | 71 | psched_time_t expires) |
@@ -73,31 +73,34 @@ static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, | |||
73 | qdisc_watchdog_schedule_ns(wd, PSCHED_TICKS2NS(expires)); | 73 | qdisc_watchdog_schedule_ns(wd, PSCHED_TICKS2NS(expires)); |
74 | } | 74 | } |
75 | 75 | ||
76 | extern void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); | 76 | void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); |
77 | 77 | ||
78 | extern struct Qdisc_ops pfifo_qdisc_ops; | 78 | extern struct Qdisc_ops pfifo_qdisc_ops; |
79 | extern struct Qdisc_ops bfifo_qdisc_ops; | 79 | extern struct Qdisc_ops bfifo_qdisc_ops; |
80 | extern struct Qdisc_ops pfifo_head_drop_qdisc_ops; | 80 | extern struct Qdisc_ops pfifo_head_drop_qdisc_ops; |
81 | 81 | ||
82 | extern int fifo_set_limit(struct Qdisc *q, unsigned int limit); | 82 | int fifo_set_limit(struct Qdisc *q, unsigned int limit); |
83 | extern struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, | 83 | struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, |
84 | unsigned int limit); | 84 | unsigned int limit); |
85 | 85 | ||
86 | extern int register_qdisc(struct Qdisc_ops *qops); | 86 | int register_qdisc(struct Qdisc_ops *qops); |
87 | extern int unregister_qdisc(struct Qdisc_ops *qops); | 87 | int unregister_qdisc(struct Qdisc_ops *qops); |
88 | extern void qdisc_list_del(struct Qdisc *q); | 88 | void qdisc_get_default(char *id, size_t len); |
89 | extern struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle); | 89 | int qdisc_set_default(const char *id); |
90 | extern struct Qdisc *qdisc_lookup_class(struct net_device *dev, u32 handle); | 90 | |
91 | extern struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, | 91 | void qdisc_list_del(struct Qdisc *q); |
92 | struct nlattr *tab); | 92 | struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle); |
93 | extern void qdisc_put_rtab(struct qdisc_rate_table *tab); | 93 | struct Qdisc *qdisc_lookup_class(struct net_device *dev, u32 handle); |
94 | extern void qdisc_put_stab(struct qdisc_size_table *tab); | 94 | struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, |
95 | extern void qdisc_warn_nonwc(char *txt, struct Qdisc *qdisc); | 95 | struct nlattr *tab); |
96 | extern int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, | 96 | void qdisc_put_rtab(struct qdisc_rate_table *tab); |
97 | struct net_device *dev, struct netdev_queue *txq, | 97 | void qdisc_put_stab(struct qdisc_size_table *tab); |
98 | spinlock_t *root_lock); | 98 | void qdisc_warn_nonwc(char *txt, struct Qdisc *qdisc); |
99 | 99 | int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, | |
100 | extern void __qdisc_run(struct Qdisc *q); | 100 | struct net_device *dev, struct netdev_queue *txq, |
101 | spinlock_t *root_lock); | ||
102 | |||
103 | void __qdisc_run(struct Qdisc *q); | ||
101 | 104 | ||
102 | static inline void qdisc_run(struct Qdisc *q) | 105 | static inline void qdisc_run(struct Qdisc *q) |
103 | { | 106 | { |
@@ -105,10 +108,10 @@ static inline void qdisc_run(struct Qdisc *q) | |||
105 | __qdisc_run(q); | 108 | __qdisc_run(q); |
106 | } | 109 | } |
107 | 110 | ||
108 | extern int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp, | 111 | int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp, |
109 | struct tcf_result *res); | ||
110 | extern int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, | ||
111 | struct tcf_result *res); | 112 | struct tcf_result *res); |
113 | int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, | ||
114 | struct tcf_result *res); | ||
112 | 115 | ||
113 | /* Calculate maximal size of packet seen by hard_start_xmit | 116 | /* Calculate maximal size of packet seen by hard_start_xmit |
114 | routine of this device. | 117 | routine of this device. |