Home
last modified time | relevance | path

Searched refs:qdisc (Results 1 – 25 of 169) sorted by relevance

1234567

/linux/drivers/net/ethernet/netronome/nfp/abm/
A Dqdisc.c208 if (qdisc->offload_mark && !qdisc->offloaded) in nfp_abm_offload_compile_red()
231 qdisc->offload_mark = qdisc->type == NFP_QDISC_MQ; in nfp_abm_offload_compile_mq()
271 if (!qdisc->offload_mark && qdisc->offloaded) in nfp_abm_qdisc_offload_update()
273 qdisc->offloaded = qdisc->offload_mark; in nfp_abm_qdisc_offload_update()
326 if (!qdisc) in nfp_abm_qdisc_free()
330 TC_H_MAJ(qdisc->handle)) != qdisc); in nfp_abm_qdisc_free()
347 qdisc = kzalloc(sizeof(*qdisc), GFP_KERNEL); in nfp_abm_qdisc_alloc()
348 if (!qdisc) in nfp_abm_qdisc_alloc()
410 if (!qdisc) in nfp_abm_qdisc_destroy()
491 if (!qdisc) in nfp_abm_gred_stats()
[all …]
/linux/net/sched/
A Dsch_generic.c1032 if (!qdisc) in qdisc_put()
1094 if (!qdisc) in attach_one_default_qdisc()
1117 dev->qdisc = qdisc; in attach_default_qdiscs()
1118 qdisc->ops->attach(qdisc); in attach_default_qdiscs()
1199 qdisc = rtnl_dereference(dev_queue->qdisc); in dev_deactivate_queue()
1214 if (!qdisc) in dev_reset_queue()
1331 struct Qdisc *qdisc = dev->qdisc; in dev_qdisc_change_real_num_tx() local
1334 qdisc->ops->change_real_num_tx(qdisc, new_real_tx); in dev_qdisc_change_real_num_tx()
1349 if (qdisc != &noop_qdisc && !qdisc->handle) in mq_change_real_num_tx()
1354 if (qdisc != &noop_qdisc && !qdisc->handle) in mq_change_real_num_tx()
[all …]
A Dsch_mq.c73 struct Qdisc *qdisc; in mq_init() local
94 if (!qdisc) in mq_init()
96 priv->qdiscs[ntx] = qdisc; in mq_init()
110 struct Qdisc *qdisc, *old; in mq_attach() local
114 qdisc = priv->qdiscs[ntx]; in mq_attach()
115 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mq_attach()
120 qdisc_hash_add(qdisc, false); in mq_attach()
131 struct Qdisc *qdisc; in mq_dump() local
145 spin_lock_bh(qdisc_lock(qdisc)); in mq_dump()
148 &qdisc->bstats, false); in mq_dump()
[all …]
A Dsch_mqprio.c139 struct Qdisc *qdisc; in mqprio_init() local
232 if (!qdisc) in mqprio_init()
235 priv->qdiscs[i] = qdisc; in mqprio_init()
293 struct Qdisc *qdisc, *old; in mqprio_attach() local
298 qdisc = priv->qdiscs[ntx]; in mqprio_attach()
299 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mqprio_attach()
303 qdisc_hash_add(qdisc, false); in mqprio_attach()
389 struct Qdisc *qdisc; in mqprio_dump() local
408 &qdisc->qstats); in mqprio_dump()
518 struct Qdisc *qdisc = rtnl_dereference(q->qdisc); in mqprio_dump_class_stats() local
[all …]
A Dsch_cbs.c84 struct Qdisc *qdisc; member
109 struct Qdisc *qdisc = q->qdisc; in cbs_enqueue_offload() local
118 struct Qdisc *qdisc = q->qdisc; in cbs_enqueue_soft() local
179 struct Qdisc *qdisc = q->qdisc; in cbs_dequeue_soft() local
234 struct Qdisc *qdisc = q->qdisc; in cbs_dequeue_offload() local
347 qdev = qdisc_dev(q->qdisc); in cbs_dev_notifier()
414 if (!q->qdisc) in cbs_init()
421 qdisc_hash_add(q->qdisc, false); in cbs_init()
439 if (!q->qdisc) in cbs_destroy()
449 qdisc_put(q->qdisc); in cbs_destroy()
[all …]
A Dsch_drr.c26 struct Qdisc *qdisc; member
114 if (cl->qdisc == NULL) in drr_change_class()
115 cl->qdisc = &noop_qdisc; in drr_change_class()
124 qdisc_put(cl->qdisc); in drr_change_class()
143 qdisc_put(cl->qdisc); in drr_destroy_class()
158 qdisc_purge_queue(cl->qdisc); in drr_delete_class()
224 return cl->qdisc; in drr_class_leaf()
355 first = !cl->qdisc->q.qlen; in drr_enqueue()
386 skb = cl->qdisc->ops->peek(cl->qdisc); in drr_dequeue()
439 if (cl->qdisc->q.qlen) in drr_reset_qdisc()
[all …]
A Dsch_ets.c41 struct Qdisc *qdisc; member
271 return cl->qdisc; in ets_class_leaf()
306 tcm->tcm_info = cl->qdisc->handle; in ets_class_dump()
326 struct Qdisc *cl_q = cl->qdisc; in ets_class_dump_stats()
434 first = !cl->qdisc->q.qlen; in ets_qdisc_enqueue()
483 skb = cl->qdisc->ops->peek(cl->qdisc); in ets_qdisc_dequeue()
495 if (cl->qdisc->q.qlen == 0) in ets_qdisc_dequeue()
663 if (q->classes[i].qdisc->q.qlen) { in ets_qdisc_change()
680 q->classes[i].qdisc = queues[i]; in ets_qdisc_change()
689 qdisc_put(q->classes[i].qdisc); in ets_qdisc_change()
[all …]
A Dsch_tbf.c273 skb = q->qdisc->ops->peek(q->qdisc); in tbf_dequeue()
296 skb = qdisc_dequeue_peeked(q->qdisc); in tbf_dequeue()
332 qdisc_reset(q->qdisc); in tbf_reset()
431 if (q->qdisc != &noop_qdisc) { in tbf_change()
449 qdisc_tree_flush_backlog(q->qdisc); in tbf_change()
450 qdisc_put(q->qdisc); in tbf_change()
451 q->qdisc = child; in tbf_change()
483 q->qdisc = &noop_qdisc; in tbf_init()
499 qdisc_put(q->qdisc); in tbf_destroy()
550 tcm->tcm_info = q->qdisc->handle; in tbf_dump_class()
[all …]
A Dsch_multiq.c63 struct Qdisc *qdisc; in multiq_enqueue() local
66 qdisc = multiq_classify(skb, sch, &ret); in multiq_enqueue()
68 if (qdisc == NULL) { in multiq_enqueue()
77 ret = qdisc_enqueue(skb, qdisc, to_free); in multiq_enqueue()
90 struct Qdisc *qdisc; in multiq_dequeue() local
105 qdisc = q->queues[q->curband]; in multiq_dequeue()
106 skb = qdisc->dequeue(qdisc); in multiq_dequeue()
122 struct Qdisc *qdisc; in multiq_peek() local
137 qdisc = q->queues[curband]; in multiq_peek()
138 skb = qdisc->ops->peek(qdisc); in multiq_peek()
/linux/include/net/
A Dsch_generic.h147 return qdisc; in qdisc_refcount_inc_nz()
149 return qdisc; in qdisc_refcount_inc_nz()
233 &qdisc->state))) in qdisc_run_end()
234 __netif_schedule(qdisc); in qdisc_run_end()
553 return &qdisc->q.lock; in qdisc_lock()
558 struct Qdisc *q = rcu_dereference_rtnl(qdisc->dev_queue->qdisc); in qdisc_root()
565 return rcu_dereference_bh(qdisc->dev_queue->qdisc); in qdisc_root_bh()
757 struct Qdisc *qdisc; in qdisc_reset_all_tx_gt() local
760 qdisc = rtnl_dereference(netdev_get_tx_queue(dev, i)->qdisc); in qdisc_reset_all_tx_gt()
761 if (qdisc) { in qdisc_reset_all_tx_gt()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
A Dtc_restrictions.sh54 tc qdisc del dev $swp2 clsact
68 tc qdisc del dev $swp1 clsact
79 tc qdisc del dev $swp2 clsact
80 tc qdisc del dev $swp1 clsact
103 tc qdisc del dev $swp2 clsact
118 tc qdisc del dev $swp1 clsact
128 tc qdisc del dev $swp2 clsact
135 tc qdisc del dev $swp1 clsact
147 tc qdisc add dev $swp1 clsact
162 tc qdisc del dev $swp1 clsact
[all …]
A Dsch_offload.sh57 tc qdisc add dev $h1 $locus handle $handle \
60 tc qdisc del dev $h1 $locus
68 tc qdisc add dev $h1 $locus handle $handle \
71 tc qdisc del dev $h1 $locus
79 tc qdisc add dev $h1 $locus handle $handle \
82 tc qdisc del dev $h1 $locus
90 tc qdisc add dev $h1 $locus handle $handle \
93 tc qdisc del dev $h1 $locus
103 tc qdisc del dev $h1 $locus
113 tc qdisc del dev $h1 $locus
[all …]
A Dqos_headroom.sh169 tc qdisc replace dev $swp root handle 1: bfifo limit 1.5M
171 tc qdisc delete dev $swp root
249 tc qdisc replace dev $swp root handle 1: bfifo limit 1.5M
255 tc qdisc delete dev $swp root
261 tc qdisc delete dev $swp root
291 tc qdisc replace dev $swp root handle 1: bfifo limit 1M
299 tc qdisc replace dev $swp root handle 2: prio bands 8
304 tc qdisc delete dev $swp root
324 tc qdisc add dev $swp clsact
347 tc qdisc del dev $swp clsact
[all …]
A Dsch_red_ets.sh28 tc qdisc add dev $swp3 root handle 10: $QDISC \
36 tc qdisc add dev $swp3 parent 10:8 handle 108: red \
45 tc qdisc add dev $swp3 parent 10:7 handle 107: red \
60 tc qdisc del dev $swp3 parent 10:8
65 tc qdisc del dev $swp3 parent 10:7
70 tc qdisc del dev $swp3 root
A Dqos_dscp_router.sh68 tc qdisc add dev $h1 clsact
77 tc qdisc del dev $h1 clsact
84 tc qdisc add dev $h2 clsact
93 tc qdisc del dev $h2 clsact
112 tc qdisc add dev $swp1 clsact
113 tc qdisc add dev $swp2 clsact
127 tc qdisc del dev $swp2 clsact
128 tc qdisc del dev $swp1 clsact
A Drif_mac_profiles.sh19 tc qdisc add dev $h1 ingress
24 tc qdisc del dev $h1 ingress
35 tc qdisc add dev $h2 ingress
40 tc qdisc del dev $h2 ingress
51 tc qdisc add dev $rp1 clsact
52 tc qdisc add dev $rp2 clsact
61 tc qdisc del dev $rp2 clsact
62 tc qdisc del dev $rp1 clsact
A Dqos_pfc.sh172 tc qdisc replace dev $swp1 root handle 1: \
188 tc qdisc replace dev $swp2 root handle 1: \
190 tc qdisc replace dev $swp2 parent 1:7 handle 17: \
205 tc qdisc replace dev $swp3 root handle 1: \
227 tc qdisc replace dev $swp4 root handle 1: \
279 tc qdisc del dev $swp4 root
293 tc qdisc del dev $swp3 root
305 tc qdisc del dev $swp2 parent 1:7
306 tc qdisc del dev $swp2 root
319 tc qdisc del dev $swp1 root
/linux/include/trace/events/
A Dqdisc.h2 #define TRACE_SYSTEM qdisc
19 TP_ARGS(qdisc, txq, packets, skb),
22 __field( struct Qdisc *, qdisc )
34 __entry->qdisc = qdisc;
39 __entry->handle = qdisc->handle;
40 __entry->parent = qdisc->parent;
53 TP_ARGS(qdisc, txq, skb),
56 __field(struct Qdisc *, qdisc)
65 __entry->qdisc = qdisc;
69 __entry->handle = qdisc->handle;
[all …]
/linux/tools/testing/selftests/net/forwarding/
A Dsch_tbf_etsprio.sh17 tc qdisc replace dev $swp2 parent 10:3 handle 103: tbf \
19 tc qdisc replace dev $swp2 parent 10:2 handle 102: tbf \
32 tc qdisc add dev $swp2 root handle 10: $QDISC 3 priomap 2 1 0
34 tc qdisc del dev $swp2 root
43 tc qdisc replace dev $swp2 root handle 1: \
45 tc qdisc replace dev $swp2 parent 1:1 handle 10: \
47 tc qdisc replace dev $swp2 parent 10:3 handle 103: \
49 tc qdisc replace dev $swp2 parent 10:2 handle 102: \
51 tc qdisc replace dev $swp2 parent 10:1 handle 101: \
57 tc qdisc del dev $swp2 root
A Dtc_mpls_l2vpn.sh81 tc qdisc add dev $edge1 ingress
89 tc qdisc add dev $mpls1 ingress
102 tc qdisc del dev $mpls1 ingress
105 tc qdisc del dev $edge1 ingress
110 tc qdisc add dev $edge2 ingress
118 tc qdisc add dev $mpls2 ingress
131 tc qdisc del dev $mpls2 ingress
134 tc qdisc del dev $edge2 ingress
A Dskbedit_priority.sh63 tc qdisc add dev $swp1 clsact
64 tc qdisc add dev $swp2 clsact
65 tc qdisc add dev $swp2 root handle 10: \
71 tc qdisc del dev $swp2 root
72 tc qdisc del dev $swp2 clsact
73 tc qdisc del dev $swp1 clsact
A Dpedit_l4port.sh48 tc qdisc add dev $h2 clsact
53 tc qdisc del dev $h2 clsact
65 tc qdisc add dev $swp1 clsact
66 tc qdisc add dev $swp2 clsact
71 tc qdisc del dev $swp2 clsact
72 tc qdisc del dev $swp1 clsact
/linux/samples/bpf/
A Ddo_hbm_test.sh90 qdisc=""
148 qdisc="fq"
169 qdisc="${i#*=}"
236 if [ "$qdisc" != "" ] ; then
239 tc qdisc del dev lo root > /dev/null 2>&1
241 elif [ "$qdisc" != "" ] ; then
242 tc qdisc del dev eth0 root > /dev/null 2>&1
243 tc qdisc add dev eth0 root $qdisc > /dev/null 2>&1
411 tc qdisc del dev lo root > /dev/null 2>&1
413 if [ "$qdisc" != "" ] ; then
[all …]
/linux/Documentation/networking/
A Dmultiqueue.rst32 default pfifo_fast qdisc. This qdisc supports one qdisc per hardware queue.
33 A new round-robin qdisc, sch_multiq also supports multiple hardware queues. The
34 qdisc is responsible for classifying the skb's and then directing the skb's to
42 On qdisc load, the number of bands is based on the number of queues on the
51 qdiscs. To add the MULTIQ qdisc to your network device, assuming the device
54 # tc qdisc add dev eth0 root handle 1: multiq
56 The qdisc will allocate the number of bands to equal the number of queues that
57 the device reports, and bring the qdisc online. Assuming eth0 has 4 Tx
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_qdisc.c127 tmp = pre(qdisc, data); in mlxsw_sp_qdisc_walk()
132 if (qdisc->ops) { in mlxsw_sp_qdisc_walk()
134 tmp = &qdisc->qdiscs[i]; in mlxsw_sp_qdisc_walk()
135 if (qdisc->ops) { in mlxsw_sp_qdisc_walk()
151 if (qdisc->ops && TC_H_MAJ(qdisc->handle) == TC_H_MAJ(parent)) { in mlxsw_sp_qdisc_walk_cb_find()
152 if (qdisc->ops->find_class) in mlxsw_sp_qdisc_walk_cb_find()
153 return qdisc->ops->find_class(qdisc, parent); in mlxsw_sp_qdisc_walk_cb_find()
177 if (qdisc->ops && qdisc->handle == handle) in mlxsw_sp_qdisc_walk_cb_find_by_handle()
178 return qdisc; in mlxsw_sp_qdisc_walk_cb_find_by_handle()
2202 if (!qdisc) { in mlxsw_sp_setup_tc_block_qevent_bind()
[all …]

Completed in 1724 milliseconds

1234567