Home
last modified time | relevance | path

Searched refs:Qdisc (Results 1 – 25 of 51) sorted by relevance

123

/Linux-v5.4/include/net/
Dsch_generic.h57 struct Qdisc { struct
59 struct Qdisc *sch, argument
61 struct sk_buff * (*dequeue)(struct Qdisc *sch); argument
106 struct Qdisc *next_sched; argument
117 static inline void qdisc_refcount_inc(struct Qdisc *qdisc) in qdisc_refcount_inc() argument
128 static inline struct Qdisc *qdisc_refcount_inc_nz(struct Qdisc *qdisc) in qdisc_refcount_inc_nz()
137 static inline bool qdisc_is_running(struct Qdisc *qdisc) in qdisc_is_running()
144 static inline bool qdisc_is_percpu_stats(const struct Qdisc *q) in qdisc_is_percpu_stats()
149 static inline bool qdisc_is_empty(const struct Qdisc *qdisc) in qdisc_is_empty()
156 static inline bool qdisc_run_begin(struct Qdisc *qdisc) in qdisc_run_begin()
[all …]
Dpkt_sched.h19 int (*fn)(struct Qdisc *, unsigned long cl, struct qdisc_walker *);
25 static inline void *qdisc_priv(struct Qdisc *q) in qdisc_priv()
27 return (char *) q + QDISC_ALIGN(sizeof(struct Qdisc)); in qdisc_priv()
72 struct Qdisc *qdisc;
75 void qdisc_watchdog_init_clockid(struct qdisc_watchdog *wd, struct Qdisc *qdisc,
77 void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc);
92 int fifo_set_limit(struct Qdisc *q, unsigned int limit);
93 struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops,
102 void qdisc_hash_add(struct Qdisc *q, bool invisible);
103 void qdisc_hash_del(struct Qdisc *q);
[all …]
/Linux-v5.4/net/sched/
Dsch_multiq.c25 struct Qdisc **queues;
29 static struct Qdisc *
30 multiq_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr) in multiq_classify()
60 multiq_enqueue(struct sk_buff *skb, struct Qdisc *sch, in multiq_enqueue()
63 struct Qdisc *qdisc; in multiq_enqueue()
87 static struct sk_buff *multiq_dequeue(struct Qdisc *sch) in multiq_dequeue()
90 struct Qdisc *qdisc; in multiq_dequeue()
118 static struct sk_buff *multiq_peek(struct Qdisc *sch) in multiq_peek()
122 struct Qdisc *qdisc; in multiq_peek()
148 multiq_reset(struct Qdisc *sch) in multiq_reset()
[all …]
Dsch_ingress.c23 static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg) in ingress_leaf()
28 static unsigned long ingress_find(struct Qdisc *sch, u32 classid) in ingress_find()
33 static unsigned long ingress_bind_filter(struct Qdisc *sch, in ingress_bind_filter()
39 static void ingress_unbind_filter(struct Qdisc *sch, unsigned long cl) in ingress_unbind_filter()
43 static void ingress_walk(struct Qdisc *sch, struct qdisc_walker *walker) in ingress_walk()
47 static struct tcf_block *ingress_tcf_block(struct Qdisc *sch, unsigned long cl, in ingress_tcf_block()
62 static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index) in ingress_ingress_block_set()
69 static u32 ingress_ingress_block_get(struct Qdisc *sch) in ingress_ingress_block_get()
76 static int ingress_init(struct Qdisc *sch, struct nlattr *opt, in ingress_init()
93 static void ingress_destroy(struct Qdisc *sch) in ingress_destroy()
[all …]
Dsch_prio.c26 struct Qdisc *queues[TCQ_PRIO_BANDS];
30 static struct Qdisc *
31 prio_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr) in prio_classify()
69 prio_enqueue(struct sk_buff *skb, struct Qdisc *sch, struct sk_buff **to_free) in prio_enqueue()
72 struct Qdisc *qdisc; in prio_enqueue()
97 static struct sk_buff *prio_peek(struct Qdisc *sch) in prio_peek()
103 struct Qdisc *qdisc = q->queues[prio]; in prio_peek()
111 static struct sk_buff *prio_dequeue(struct Qdisc *sch) in prio_dequeue()
117 struct Qdisc *qdisc = q->queues[prio]; in prio_dequeue()
131 prio_reset(struct Qdisc *sch) in prio_reset()
[all …]
Dsch_red.c40 struct Qdisc *sch;
44 struct Qdisc *qdisc;
57 static int red_enqueue(struct sk_buff *skb, struct Qdisc *sch, in red_enqueue()
61 struct Qdisc *child = q->qdisc; in red_enqueue()
112 static struct sk_buff *red_dequeue(struct Qdisc *sch) in red_dequeue()
116 struct Qdisc *child = q->qdisc; in red_dequeue()
130 static struct sk_buff *red_peek(struct Qdisc *sch) in red_peek()
133 struct Qdisc *child = q->qdisc; in red_peek()
138 static void red_reset(struct Qdisc *sch) in red_reset()
148 static int red_offload(struct Qdisc *sch, bool enable) in red_offload()
[all …]
Dsch_mq.c21 struct Qdisc **qdiscs;
24 static int mq_offload(struct Qdisc *sch, enum tc_mq_command cmd) in mq_offload()
38 static int mq_offload_stats(struct Qdisc *sch) in mq_offload_stats()
52 static void mq_destroy(struct Qdisc *sch) in mq_destroy()
67 static int mq_init(struct Qdisc *sch, struct nlattr *opt, in mq_init()
73 struct Qdisc *qdisc; in mq_init()
106 static void mq_attach(struct Qdisc *sch) in mq_attach()
110 struct Qdisc *qdisc, *old; in mq_attach()
128 static int mq_dump(struct Qdisc *sch, struct sk_buff *skb) in mq_dump()
131 struct Qdisc *qdisc; in mq_dump()
[all …]
Dsch_cbs.c80 int (*enqueue)(struct sk_buff *skb, struct Qdisc *sch,
82 struct sk_buff *(*dequeue)(struct Qdisc *sch);
83 struct Qdisc *qdisc;
87 static int cbs_child_enqueue(struct sk_buff *skb, struct Qdisc *sch, in cbs_child_enqueue()
88 struct Qdisc *child, in cbs_child_enqueue()
104 static int cbs_enqueue_offload(struct sk_buff *skb, struct Qdisc *sch, in cbs_enqueue_offload()
108 struct Qdisc *qdisc = q->qdisc; in cbs_enqueue_offload()
113 static int cbs_enqueue_soft(struct sk_buff *skb, struct Qdisc *sch, in cbs_enqueue_soft()
117 struct Qdisc *qdisc = q->qdisc; in cbs_enqueue_soft()
130 static int cbs_enqueue(struct sk_buff *skb, struct Qdisc *sch, in cbs_enqueue()
[all …]
Dsch_drr.c26 struct Qdisc *qdisc;
39 static struct drr_class *drr_find_class(struct Qdisc *sch, u32 classid) in drr_find_class()
54 static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in drr_change_class()
142 static void drr_destroy_class(struct Qdisc *sch, struct drr_class *cl) in drr_destroy_class()
149 static int drr_delete_class(struct Qdisc *sch, unsigned long arg) in drr_delete_class()
168 static unsigned long drr_search_class(struct Qdisc *sch, u32 classid) in drr_search_class()
173 static struct tcf_block *drr_tcf_block(struct Qdisc *sch, unsigned long cl, in drr_tcf_block()
186 static unsigned long drr_bind_tcf(struct Qdisc *sch, unsigned long parent, in drr_bind_tcf()
197 static void drr_unbind_tcf(struct Qdisc *sch, unsigned long arg) in drr_unbind_tcf()
204 static int drr_graft_class(struct Qdisc *sch, unsigned long arg, in drr_graft_class()
[all …]
Dsch_generic.c51 static inline struct sk_buff *__skb_dequeue_bad_txq(struct Qdisc *q) in __skb_dequeue_bad_txq()
86 static inline struct sk_buff *qdisc_dequeue_skb_bad_txq(struct Qdisc *q) in qdisc_dequeue_skb_bad_txq()
96 static inline void qdisc_enqueue_skb_bad_txq(struct Qdisc *q, in qdisc_enqueue_skb_bad_txq()
120 static inline void dev_requeue_skb(struct sk_buff *skb, struct Qdisc *q) in dev_requeue_skb()
152 static void try_bulk_dequeue_skb(struct Qdisc *q, in try_bulk_dequeue_skb()
176 static void try_bulk_dequeue_skb_slow(struct Qdisc *q, in try_bulk_dequeue_skb_slow()
202 static struct sk_buff *dequeue_skb(struct Qdisc *q, bool *validate, in dequeue_skb()
285 bool sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, in sch_direct_xmit()
357 static inline bool qdisc_restart(struct Qdisc *q, int *packets) in qdisc_restart()
379 void __qdisc_run(struct Qdisc *q) in __qdisc_run()
[all …]
Dsch_dsmark.c46 struct Qdisc *q;
64 static int dsmark_graft(struct Qdisc *sch, unsigned long arg, in dsmark_graft()
65 struct Qdisc *new, struct Qdisc **old, in dsmark_graft()
84 static struct Qdisc *dsmark_leaf(struct Qdisc *sch, unsigned long arg) in dsmark_leaf()
90 static unsigned long dsmark_find(struct Qdisc *sch, u32 classid) in dsmark_find()
95 static unsigned long dsmark_bind_filter(struct Qdisc *sch, in dsmark_bind_filter()
104 static void dsmark_unbind_filter(struct Qdisc *sch, unsigned long cl) in dsmark_unbind_filter()
116 static int dsmark_change(struct Qdisc *sch, u32 classid, u32 parent, in dsmark_change()
153 static int dsmark_delete(struct Qdisc *sch, unsigned long arg) in dsmark_delete()
166 static void dsmark_walk(struct Qdisc *sch, struct qdisc_walker *walker) in dsmark_walk()
[all …]
Dsch_sfb.c53 struct Qdisc *qdisc;
279 static int sfb_enqueue(struct sk_buff *skb, struct Qdisc *sch, in sfb_enqueue()
284 struct Qdisc *child = q->qdisc; in sfb_enqueue()
423 static struct sk_buff *sfb_dequeue(struct Qdisc *sch) in sfb_dequeue()
426 struct Qdisc *child = q->qdisc; in sfb_dequeue()
441 static struct sk_buff *sfb_peek(struct Qdisc *sch) in sfb_peek()
444 struct Qdisc *child = q->qdisc; in sfb_peek()
451 static void sfb_reset(struct Qdisc *sch) in sfb_reset()
464 static void sfb_destroy(struct Qdisc *sch) in sfb_destroy()
488 static int sfb_change(struct Qdisc *sch, struct nlattr *opt, in sfb_change()
[all …]
Dsch_skbprio.c68 static int skbprio_enqueue(struct sk_buff *skb, struct Qdisc *sch, in skbprio_enqueue()
139 static struct sk_buff *skbprio_dequeue(struct Qdisc *sch) in skbprio_dequeue()
167 static int skbprio_change(struct Qdisc *sch, struct nlattr *opt, in skbprio_change()
176 static int skbprio_init(struct Qdisc *sch, struct nlattr *opt, in skbprio_init()
196 static int skbprio_dump(struct Qdisc *sch, struct sk_buff *skb) in skbprio_dump()
208 static void skbprio_reset(struct Qdisc *sch) in skbprio_reset()
224 static void skbprio_destroy(struct Qdisc *sch) in skbprio_destroy()
233 static struct Qdisc *skbprio_leaf(struct Qdisc *sch, unsigned long arg) in skbprio_leaf()
238 static unsigned long skbprio_find(struct Qdisc *sch, u32 classid) in skbprio_find()
243 static int skbprio_dump_class(struct Qdisc *sch, unsigned long cl, in skbprio_dump_class()
[all …]
Dsch_fifo.c18 static int bfifo_enqueue(struct sk_buff *skb, struct Qdisc *sch, in bfifo_enqueue()
27 static int pfifo_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pfifo_enqueue()
36 static int pfifo_tail_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pfifo_tail_enqueue()
54 static int fifo_init(struct Qdisc *sch, struct nlattr *opt, in fifo_init()
88 static int fifo_dump(struct Qdisc *sch, struct sk_buff *skb) in fifo_dump()
142 int fifo_set_limit(struct Qdisc *q, unsigned int limit) in fifo_set_limit()
164 struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, in fifo_create_dflt()
168 struct Qdisc *q; in fifo_create_dflt()
Dsch_atm.c46 struct Qdisc *q; /* FIFO, TBF, etc. */
73 static inline struct atm_flow_data *lookup_flow(struct Qdisc *sch, u32 classid) in lookup_flow()
85 static int atm_tc_graft(struct Qdisc *sch, unsigned long arg, in atm_tc_graft()
86 struct Qdisc *new, struct Qdisc **old, in atm_tc_graft()
105 static struct Qdisc *atm_tc_leaf(struct Qdisc *sch, unsigned long cl) in atm_tc_leaf()
113 static unsigned long atm_tc_find(struct Qdisc *sch, u32 classid) in atm_tc_find()
124 static unsigned long atm_tc_bind_filter(struct Qdisc *sch, in atm_tc_bind_filter()
143 static void atm_tc_put(struct Qdisc *sch, unsigned long cl) in atm_tc_put()
195 static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, in atm_tc_change()
323 static int atm_tc_delete(struct Qdisc *sch, unsigned long arg) in atm_tc_delete()
[all …]
Dsch_tbf.c109 struct Qdisc *qdisc; /* Inner qdisc, default - bfifo queue */
143 static int tbf_segment(struct sk_buff *skb, struct Qdisc *sch, in tbf_segment()
179 static int tbf_enqueue(struct sk_buff *skb, struct Qdisc *sch, in tbf_enqueue()
209 static struct sk_buff *tbf_dequeue(struct Qdisc *sch) in tbf_dequeue()
269 static void tbf_reset(struct Qdisc *sch) in tbf_reset()
292 static int tbf_change(struct Qdisc *sch, struct nlattr *opt, in tbf_change()
299 struct Qdisc *child = NULL; in tbf_change()
416 static int tbf_init(struct Qdisc *sch, struct nlattr *opt, in tbf_init()
432 static void tbf_destroy(struct Qdisc *sch) in tbf_destroy()
440 static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb) in tbf_dump()
[all …]
Dsch_mqprio.c21 struct Qdisc **qdiscs;
30 static void mqprio_destroy(struct Qdisc *sch) in mqprio_destroy()
133 static int mqprio_init(struct Qdisc *sch, struct nlattr *opt, in mqprio_init()
139 struct Qdisc *qdisc; in mqprio_init()
289 static void mqprio_attach(struct Qdisc *sch) in mqprio_attach()
293 struct Qdisc *qdisc, *old; in mqprio_attach()
309 static struct netdev_queue *mqprio_queue_get(struct Qdisc *sch, in mqprio_queue_get()
320 static int mqprio_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mqprio_graft()
321 struct Qdisc **old, struct netlink_ext_ack *extack) in mqprio_graft()
383 static int mqprio_dump(struct Qdisc *sch, struct sk_buff *skb) in mqprio_dump()
[all …]
Dsch_api.c257 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root()
259 struct Qdisc *q; in qdisc_match_from_root()
275 void qdisc_hash_add(struct Qdisc *q, bool invisible) in qdisc_hash_add()
286 void qdisc_hash_del(struct Qdisc *q) in qdisc_hash_del()
295 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) in qdisc_lookup()
297 struct Qdisc *q; in qdisc_lookup()
313 struct Qdisc *qdisc_lookup_rcu(struct net_device *dev, u32 handle) in qdisc_lookup_rcu()
316 struct Qdisc *q; in qdisc_lookup_rcu()
331 static struct Qdisc *qdisc_leaf(struct Qdisc *p, u32 classid) in qdisc_leaf()
584 void qdisc_warn_nonwc(const char *txt, struct Qdisc *qdisc) in qdisc_warn_nonwc()
[all …]
Dsch_fq_codel.c77 static unsigned int fq_codel_classify(struct sk_buff *skb, struct Qdisc *sch, in fq_codel_classify()
138 static unsigned int fq_codel_drop(struct Qdisc *sch, unsigned int max_packets, in fq_codel_drop()
185 static int fq_codel_enqueue(struct sk_buff *skb, struct Qdisc *sch, in fq_codel_enqueue()
258 struct Qdisc *sch = ctx; in dequeue_func()
276 struct Qdisc *sch = ctx; in drop_func()
282 static struct sk_buff *fq_codel_dequeue(struct Qdisc *sch) in fq_codel_dequeue()
336 static void fq_codel_reset(struct Qdisc *sch) in fq_codel_reset()
368 static int fq_codel_change(struct Qdisc *sch, struct nlattr *opt, in fq_codel_change()
441 static void fq_codel_destroy(struct Qdisc *sch) in fq_codel_destroy()
450 static int fq_codel_init(struct Qdisc *sch, struct nlattr *opt, in fq_codel_init()
[all …]
Dsch_codel.c71 struct Qdisc *sch = ctx; in dequeue_func()
83 struct Qdisc *sch = ctx; in drop_func()
89 static struct sk_buff *codel_qdisc_dequeue(struct Qdisc *sch) in codel_qdisc_dequeue()
111 static int codel_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch, in codel_qdisc_enqueue()
133 static int codel_change(struct Qdisc *sch, struct nlattr *opt, in codel_change()
189 static int codel_init(struct Qdisc *sch, struct nlattr *opt, in codel_init()
216 static int codel_dump(struct Qdisc *sch, struct sk_buff *skb) in codel_dump()
245 static int codel_dump_stats(struct Qdisc *sch, struct gnet_dump *d) in codel_dump_stats()
271 static void codel_reset(struct Qdisc *sch) in codel_reset()
Dsch_teql.c55 struct Qdisc *slaves;
64 struct Qdisc *next;
76 teql_enqueue(struct sk_buff *skb, struct Qdisc *sch, struct sk_buff **to_free) in teql_enqueue()
90 teql_dequeue(struct Qdisc *sch) in teql_dequeue()
95 struct Qdisc *q; in teql_dequeue()
115 teql_peek(struct Qdisc *sch) in teql_peek()
122 teql_reset(struct Qdisc *sch) in teql_reset()
131 teql_destroy(struct Qdisc *sch) in teql_destroy()
133 struct Qdisc *q, *prev; in teql_destroy()
166 static int teql_qdisc_init(struct Qdisc *sch, struct nlattr *opt, in teql_qdisc_init()
[all …]
Dsch_taprio.c62 struct Qdisc **qdiscs;
63 struct Qdisc *root;
78 struct sk_buff *(*dequeue)(struct Qdisc *sch);
79 struct sk_buff *(*peek)(struct Qdisc *sch);
184 struct Qdisc *sch, in find_entry_to_transmit()
260 static bool is_valid_interval(struct sk_buff *skb, struct Qdisc *sch) in is_valid_interval()
341 static long get_packet_txtime(struct sk_buff *skb, struct Qdisc *sch) in get_packet_txtime()
412 static int taprio_enqueue(struct sk_buff *skb, struct Qdisc *sch, in taprio_enqueue()
416 struct Qdisc *child; in taprio_enqueue()
440 static struct sk_buff *taprio_peek_soft(struct Qdisc *sch) in taprio_peek_soft()
[all …]
Dsch_etf.c75 static bool is_packet_valid(struct Qdisc *sch, struct sk_buff *nskb) in is_packet_valid()
108 static struct sk_buff *etf_peek_timesortedlist(struct Qdisc *sch) in etf_peek_timesortedlist()
120 static void reset_watchdog(struct Qdisc *sch) in reset_watchdog()
161 static int etf_enqueue_timesortedlist(struct sk_buff *nskb, struct Qdisc *sch, in etf_enqueue_timesortedlist()
199 static void timesortedlist_drop(struct Qdisc *sch, struct sk_buff *skb, in timesortedlist_drop()
230 static void timesortedlist_remove(struct Qdisc *sch, struct sk_buff *skb) in timesortedlist_remove()
252 static struct sk_buff *etf_dequeue_timesortedlist(struct Qdisc *sch) in etf_dequeue_timesortedlist()
345 static int etf_init(struct Qdisc *sch, struct nlattr *opt, in etf_init()
419 static void timesortedlist_clear(struct Qdisc *sch) in timesortedlist_clear()
435 static void etf_reset(struct Qdisc *sch) in etf_reset()
[all …]
Dsch_sfq.c144 struct Qdisc *sch;
163 static unsigned int sfq_classify(struct sk_buff *skb, struct Qdisc *sch, in sfq_classify()
293 static unsigned int sfq_drop(struct Qdisc *sch, struct sk_buff **to_free) in sfq_drop()
346 sfq_enqueue(struct sk_buff *skb, struct Qdisc *sch, struct sk_buff **to_free) in sfq_enqueue()
480 sfq_dequeue(struct Qdisc *sch) in sfq_dequeue()
521 sfq_reset(struct Qdisc *sch) in sfq_reset()
535 static void sfq_rehash(struct Qdisc *sch) in sfq_rehash()
608 struct Qdisc *sch = q->sch; in sfq_perturbation()
623 static int sfq_change(struct Qdisc *sch, struct nlattr *opt) in sfq_change()
710 static void sfq_destroy(struct Qdisc *sch) in sfq_destroy()
[all …]
Dsch_pie.c68 struct Qdisc *sch;
92 static bool drop_early(struct Qdisc *sch, u32 packet_size) in drop_early()
151 static int pie_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pie_qdisc_enqueue()
199 static int pie_change(struct Qdisc *sch, struct nlattr *opt, in pie_change()
265 static void pie_process_dequeue(struct Qdisc *sch, struct sk_buff *skb) in pie_process_dequeue()
330 static void calculate_probability(struct Qdisc *sch) in calculate_probability()
446 struct Qdisc *sch = q->sch; in pie_timer()
458 static int pie_init(struct Qdisc *sch, struct nlattr *opt, in pie_init()
481 static int pie_dump(struct Qdisc *sch, struct sk_buff *skb) in pie_dump()
510 static int pie_dump_stats(struct Qdisc *sch, struct gnet_dump *d) in pie_dump_stats()
[all …]

123