Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/net/
Dsch_generic.h58 struct Qdisc { struct
60 struct Qdisc *sch, argument
62 struct sk_buff * (*dequeue)(struct Qdisc *sch); argument
107 struct Qdisc *next_sched; argument
121 static inline void qdisc_refcount_inc(struct Qdisc *qdisc) in qdisc_refcount_inc() argument
132 static inline struct Qdisc *qdisc_refcount_inc_nz(struct Qdisc *qdisc) in qdisc_refcount_inc_nz()
141 static inline bool qdisc_is_running(struct Qdisc *qdisc) in qdisc_is_running()
148 static inline bool qdisc_is_percpu_stats(const struct Qdisc *q) in qdisc_is_percpu_stats()
153 static inline bool qdisc_is_empty(const struct Qdisc *qdisc) in qdisc_is_empty()
160 static inline bool qdisc_run_begin(struct Qdisc *qdisc) in qdisc_run_begin()
[all …]
Dpkt_sched.h20 int (*fn)(struct Qdisc *, unsigned long cl, struct qdisc_walker *);
23 static inline void *qdisc_priv(struct Qdisc *q) in qdisc_priv()
70 struct Qdisc *qdisc;
73 void qdisc_watchdog_init_clockid(struct qdisc_watchdog *wd, struct Qdisc *qdisc,
75 void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc);
98 int fifo_set_limit(struct Qdisc *q, unsigned int limit);
99 struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops,
108 void qdisc_hash_add(struct Qdisc *q, bool invisible);
109 void qdisc_hash_del(struct Qdisc *q);
110 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle);
[all …]
Dpkt_cls.h54 struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q,
56 int tcf_block_get_ext(struct tcf_block **p_block, struct Qdisc *q,
60 void tcf_block_put_ext(struct tcf_block *block, struct Qdisc *q,
73 static inline struct Qdisc *tcf_block_q(struct tcf_block *block) in tcf_block_q()
99 struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q, in tcf_block_get()
106 int tcf_block_get_ext(struct tcf_block **p_block, struct Qdisc *q, in tcf_block_get_ext()
118 void tcf_block_put_ext(struct tcf_block *block, struct Qdisc *q, in tcf_block_put_ext()
123 static inline struct Qdisc *tcf_block_q(struct tcf_block *block) in tcf_block_q()
164 __tcf_bind_filter(struct Qdisc *q, struct tcf_result *r, unsigned long base) in __tcf_bind_filter()
177 struct Qdisc *q = tp->chain->block->q; in tcf_bind_filter()
[all …]
/kernel/linux/linux-5.10/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_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_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()
100 static void ingress_destroy(struct Qdisc *sch) in ingress_destroy()
[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 void mq_change_real_num_tx(struct Qdisc *sch, unsigned int new_real_tx) in mq_change_real_num_tx()
132 struct Qdisc *qdisc; in mq_change_real_num_tx()
[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_fifo.c19 static int bfifo_enqueue(struct sk_buff *skb, struct Qdisc *sch, in bfifo_enqueue()
28 static int pfifo_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pfifo_enqueue()
37 static int pfifo_tail_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pfifo_tail_enqueue()
55 static void fifo_offload_init(struct Qdisc *sch) in fifo_offload_init()
69 static void fifo_offload_destroy(struct Qdisc *sch) in fifo_offload_destroy()
83 static int fifo_offload_dump(struct Qdisc *sch) in fifo_offload_dump()
96 static int __fifo_init(struct Qdisc *sch, struct nlattr *opt, in __fifo_init()
131 static int fifo_init(struct Qdisc *sch, struct nlattr *opt, in fifo_init()
144 static int fifo_hd_init(struct Qdisc *sch, struct nlattr *opt, in fifo_hd_init()
150 static void fifo_destroy(struct Qdisc *sch) in fifo_destroy()
[all …]
Dsch_red.c44 struct Qdisc *sch;
48 struct Qdisc *qdisc;
70 static int red_enqueue(struct sk_buff *skb, struct Qdisc *sch, in red_enqueue()
74 struct Qdisc *child = q->qdisc; in red_enqueue()
148 static struct sk_buff *red_dequeue(struct Qdisc *sch) in red_dequeue()
152 struct Qdisc *child = q->qdisc; in red_dequeue()
166 static struct sk_buff *red_peek(struct Qdisc *sch) in red_peek()
169 struct Qdisc *child = q->qdisc; in red_peek()
174 static void red_reset(struct Qdisc *sch) in red_reset()
184 static int red_offload(struct Qdisc *sch, bool enable) in red_offload()
[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.c38 static void qdisc_maybe_clear_missed(struct Qdisc *q, in qdisc_maybe_clear_missed()
70 static inline struct sk_buff *__skb_dequeue_bad_txq(struct Qdisc *q) in __skb_dequeue_bad_txq()
106 static inline struct sk_buff *qdisc_dequeue_skb_bad_txq(struct Qdisc *q) in qdisc_dequeue_skb_bad_txq()
116 static inline void qdisc_enqueue_skb_bad_txq(struct Qdisc *q, in qdisc_enqueue_skb_bad_txq()
140 static inline void dev_requeue_skb(struct sk_buff *skb, struct Qdisc *q) in dev_requeue_skb()
172 static void try_bulk_dequeue_skb(struct Qdisc *q, in try_bulk_dequeue_skb()
196 static void try_bulk_dequeue_skb_slow(struct Qdisc *q, in try_bulk_dequeue_skb_slow()
222 static struct sk_buff *dequeue_skb(struct Qdisc *q, bool *validate, in dequeue_skb()
308 bool sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, in sch_direct_xmit()
382 static inline bool qdisc_restart(struct Qdisc *q, int *packets) in qdisc_restart()
[all …]
Dsch_ets.c41 struct Qdisc *qdisc;
77 static int ets_quantum_parse(struct Qdisc *sch, const struct nlattr *attr, in ets_quantum_parse()
90 ets_class_from_arg(struct Qdisc *sch, unsigned long arg) in ets_class_from_arg()
97 static u32 ets_class_id(struct Qdisc *sch, const struct ets_class *cl) in ets_class_id()
105 static void ets_offload_change(struct Qdisc *sch) in ets_offload_change()
146 static void ets_offload_destroy(struct Qdisc *sch) in ets_offload_destroy()
160 static void ets_offload_graft(struct Qdisc *sch, struct Qdisc *new, in ets_offload_graft()
161 struct Qdisc *old, unsigned long arg, in ets_offload_graft()
177 static int ets_offload_dump(struct Qdisc *sch) in ets_offload_dump()
197 static int ets_class_change(struct Qdisc *sch, u32 classid, u32 parentid, in ets_class_change()
[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()
285 struct Qdisc *child = q->qdisc; in sfb_enqueue()
426 static struct sk_buff *sfb_dequeue(struct Qdisc *sch) in sfb_dequeue()
429 struct Qdisc *child = q->qdisc; in sfb_dequeue()
444 static struct sk_buff *sfb_peek(struct Qdisc *sch) in sfb_peek()
447 struct Qdisc *child = q->qdisc; in sfb_peek()
454 static void sfb_reset(struct Qdisc *sch) in sfb_reset()
467 static void sfb_destroy(struct Qdisc *sch) in sfb_destroy()
491 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()
179 static int skbprio_init(struct Qdisc *sch, struct nlattr *opt, in skbprio_init()
199 static int skbprio_dump(struct Qdisc *sch, struct sk_buff *skb) in skbprio_dump()
211 static void skbprio_reset(struct Qdisc *sch) in skbprio_reset()
227 static void skbprio_destroy(struct Qdisc *sch) in skbprio_destroy()
236 static struct Qdisc *skbprio_leaf(struct Qdisc *sch, unsigned long arg) in skbprio_leaf()
241 static unsigned long skbprio_find(struct Qdisc *sch, u32 classid) in skbprio_find()
246 static int skbprio_dump_class(struct Qdisc *sch, unsigned long cl, in skbprio_dump_class()
[all …]
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.c110 struct Qdisc *qdisc; /* Inner qdisc, default - bfifo queue */
141 static void tbf_offload_change(struct Qdisc *sch) in tbf_offload_change()
160 static void tbf_offload_destroy(struct Qdisc *sch) in tbf_offload_destroy()
174 static int tbf_offload_dump(struct Qdisc *sch) in tbf_offload_dump()
190 static int tbf_segment(struct sk_buff *skb, struct Qdisc *sch, in tbf_segment()
224 static int tbf_enqueue(struct sk_buff *skb, struct Qdisc *sch, in tbf_enqueue()
254 static struct sk_buff *tbf_dequeue(struct Qdisc *sch) in tbf_dequeue()
314 static void tbf_reset(struct Qdisc *sch) in tbf_reset()
337 static int tbf_change(struct Qdisc *sch, struct nlattr *opt, in tbf_change()
344 struct Qdisc *child = NULL; in tbf_change()
[all …]
Dsch_api.c259 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root()
261 struct Qdisc *q; in qdisc_match_from_root()
278 void qdisc_hash_add(struct Qdisc *q, bool invisible) in qdisc_hash_add()
289 void qdisc_hash_del(struct Qdisc *q) in qdisc_hash_del()
298 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) in qdisc_lookup()
300 struct Qdisc *q; in qdisc_lookup()
316 struct Qdisc *qdisc_lookup_rcu(struct net_device *dev, u32 handle) in qdisc_lookup_rcu()
319 struct Qdisc *q; in qdisc_lookup_rcu()
334 static struct Qdisc *qdisc_leaf(struct Qdisc *p, u32 classid) in qdisc_leaf()
594 void qdisc_warn_nonwc(const char *txt, struct Qdisc *qdisc) in qdisc_warn_nonwc()
[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 void mqprio_change_real_num_tx(struct Qdisc *sch, in mqprio_change_real_num_tx()
313 struct Qdisc *qdisc; in mqprio_change_real_num_tx()
331 static struct netdev_queue *mqprio_queue_get(struct Qdisc *sch, in mqprio_queue_get()
342 static int mqprio_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mqprio_graft()
[all …]
Dsch_fq_codel.c76 static unsigned int fq_codel_classify(struct sk_buff *skb, struct Qdisc *sch, in fq_codel_classify()
137 static unsigned int fq_codel_drop(struct Qdisc *sch, unsigned int max_packets, in fq_codel_drop()
184 static int fq_codel_enqueue(struct sk_buff *skb, struct Qdisc *sch, in fq_codel_enqueue()
257 struct Qdisc *sch = ctx; in dequeue_func()
275 struct Qdisc *sch = ctx; in drop_func()
281 static struct sk_buff *fq_codel_dequeue(struct Qdisc *sch) in fq_codel_dequeue()
335 static void fq_codel_reset(struct Qdisc *sch) in fq_codel_reset()
367 static int fq_codel_change(struct Qdisc *sch, struct nlattr *opt, in fq_codel_change()
448 static void fq_codel_destroy(struct Qdisc *sch) in fq_codel_destroy()
457 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()
169 static int teql_qdisc_init(struct Qdisc *sch, struct nlattr *opt, in teql_qdisc_init()
[all …]
Dsch_taprio.c63 struct Qdisc **qdiscs;
64 struct Qdisc *root;
79 struct sk_buff *(*dequeue)(struct Qdisc *sch);
80 struct sk_buff *(*peek)(struct Qdisc *sch);
189 struct Qdisc *sch, in find_entry_to_transmit()
265 static bool is_valid_interval(struct sk_buff *skb, struct Qdisc *sch) in is_valid_interval()
346 static long get_packet_txtime(struct sk_buff *skb, struct Qdisc *sch) in get_packet_txtime()
417 static int taprio_enqueue(struct sk_buff *skb, struct Qdisc *sch, in taprio_enqueue()
421 struct Qdisc *child; in taprio_enqueue()
445 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()
162 static int etf_enqueue_timesortedlist(struct sk_buff *nskb, struct Qdisc *sch, in etf_enqueue_timesortedlist()
200 static void timesortedlist_drop(struct Qdisc *sch, struct sk_buff *skb, in timesortedlist_drop()
231 static void timesortedlist_remove(struct Qdisc *sch, struct sk_buff *skb) in timesortedlist_remove()
253 static struct sk_buff *etf_dequeue_timesortedlist(struct Qdisc *sch) in etf_dequeue_timesortedlist()
346 static int etf_init(struct Qdisc *sch, struct nlattr *opt, in etf_init()
420 static void timesortedlist_clear(struct Qdisc *sch) in timesortedlist_clear()
436 static void etf_reset(struct Qdisc *sch) in etf_reset()
[all …]

123