Home
last modified time | relevance | path

Searched refs:dev_queue (Results 1 – 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/net/sched/
Dsch_generic.c72 const struct netdev_queue *txq = q->dev_queue; in __skb_dequeue_bad_txq()
225 const struct netdev_queue *txq = q->dev_queue; in dequeue_skb()
580 .dev_queue = &noop_netdev_queue,
845 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, in qdisc_alloc() argument
854 if (!dev_queue) { in qdisc_alloc()
860 dev = dev_queue->dev; in qdisc_alloc()
861 sch = kzalloc_node(size, GFP_KERNEL, netdev_queue_numa_node_read(dev_queue)); in qdisc_alloc()
900 sch->dev_queue = dev_queue; in qdisc_alloc()
912 struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue, in qdisc_create_dflt() argument
924 sch = qdisc_alloc(dev_queue, ops, extack); in qdisc_create_dflt()
[all …]
Dsch_mq.c72 struct netdev_queue *dev_queue; in mq_init() local
89 dev_queue = netdev_get_tx_queue(dev, ntx); in mq_init()
90 qdisc = qdisc_create_dflt(dev_queue, get_default_qdisc_ops(dev, ntx), in mq_init()
115 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mq_attach()
216 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_graft() local
223 *old = dev_graft_qdisc(dev_queue, new); in mq_graft()
241 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_leaf() local
243 return dev_queue->qdisc_sleeping; in mq_leaf()
258 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_dump_class() local
262 tcm->tcm_info = dev_queue->qdisc_sleeping->handle; in mq_dump_class()
[all …]
Dsch_mqprio.c229 struct netdev_queue *dev_queue; in mqprio_init() local
269 dev_queue = netdev_get_tx_queue(dev, i); in mqprio_init()
270 qdisc = qdisc_create_dflt(dev_queue, in mqprio_init()
341 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mqprio_attach()
388 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_graft() local
390 if (!dev_queue) in mqprio_graft()
396 *old = dev_graft_qdisc(dev_queue, new); in mqprio_graft()
525 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_leaf() local
527 if (!dev_queue) in mqprio_leaf()
530 return dev_queue->qdisc_sleeping; in mqprio_leaf()
[all …]
Dsch_api.c1047 struct netdev_queue *dev_queue; in qdisc_graft() local
1070 dev_queue = netdev_get_tx_queue(dev, i); in qdisc_graft()
1071 old = dev_graft_qdisc(dev_queue, new); in qdisc_graft()
1078 dev_queue = dev_ingress_queue(dev); in qdisc_graft()
1079 old = dev_graft_qdisc(dev_queue, new); in qdisc_graft()
1171 struct netdev_queue *dev_queue, in qdisc_create() argument
1217 sch = qdisc_alloc(dev_queue, ops, extack); in qdisc_create()
1707 struct netdev_queue *dev_queue; in tc_modify_qdisc() local
1710 dev_queue = p->ops->cl_ops->select_queue(p, tcm); in tc_modify_qdisc()
1712 dev_queue = p->dev_queue; in tc_modify_qdisc()
[all …]
Dsch_plug.c187 netif_schedule_queue(sch->dev_queue); in plug_change()
195 netif_schedule_queue(sch->dev_queue); in plug_change()
Dsch_taprio.c1712 struct netdev_queue *dev_queue; in taprio_init() local
1715 dev_queue = netdev_get_tx_queue(dev, i); in taprio_init()
1716 qdisc = qdisc_create_dflt(dev_queue, in taprio_init()
1751 struct netdev_queue *dev_queue = taprio_queue_get(sch, cl); in taprio_graft() local
1753 if (!dev_queue) in taprio_graft()
1909 struct netdev_queue *dev_queue = taprio_queue_get(sch, cl); in taprio_leaf() local
1911 if (!dev_queue) in taprio_leaf()
1914 return dev_queue->qdisc_sleeping; in taprio_leaf()
1929 struct netdev_queue *dev_queue = taprio_queue_get(sch, cl); in taprio_dump_class() local
1933 tcm->tcm_info = dev_queue->qdisc_sleeping->handle; in taprio_dump_class()
[all …]
Dsch_cbs.c411 q->qdisc = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in cbs_init()
422 q->queue = sch->dev_queue - netdev_get_tx_queue(dev, 0); in cbs_init()
497 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in cbs_graft()
Dsch_prio.c198 queues[i] = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in prio_tune()
294 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in prio_graft()
Dsch_dsmark.c74 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in dsmark_graft()
390 p->q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, sch->handle, in dsmark_init()
Dsch_drr.c111 cl->qdisc = qdisc_create_dflt(sch->dev_queue, in drr_change_class()
211 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in drr_graft_class()
Dsch_fifo.c259 q = qdisc_create_dflt(sch->dev_queue, ops, TC_H_MAKE(sch->handle, 1), in fifo_create_dflt()
Dsch_atm.c295 flow->q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, classid, in atm_tc_change()
554 p->link.q = qdisc_create_dflt(sch->dev_queue, in atm_tc_init()
Dsch_ets.c254 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in ets_class_graft()
650 queues[i] = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in ets_qdisc_change()
Dsch_multiq.c214 child = qdisc_create_dflt(sch->dev_queue, in multiq_tune()
Dsch_htb.c1156 (new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in htb_graft()
1265 new_q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in htb_delete()
1400 new_q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in htb_change_class()
Dsch_hfsc.c1060 cl->qdisc = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in hfsc_change_class()
1182 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in hfsc_graft_class()
1414 q->root.qdisc = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in hfsc_init_qdisc()
Dsch_etf.c382 q->queue = sch->dev_queue - netdev_get_tx_queue(dev, 0); in etf_init()
/kernel/linux/linux-5.10/include/linux/
Dnetdevice.h3324 static __always_inline void netif_tx_start_queue(struct netdev_queue *dev_queue) in netif_tx_start_queue() argument
3326 clear_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state); in netif_tx_start_queue()
3350 void netif_tx_wake_queue(struct netdev_queue *dev_queue);
3374 static __always_inline void netif_tx_stop_queue(struct netdev_queue *dev_queue) in netif_tx_stop_queue() argument
3376 set_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state); in netif_tx_stop_queue()
3393 static inline bool netif_tx_queue_stopped(const struct netdev_queue *dev_queue) in netif_tx_queue_stopped() argument
3395 return test_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state); in netif_tx_queue_stopped()
3409 static inline bool netif_xmit_stopped(const struct netdev_queue *dev_queue) in netif_xmit_stopped() argument
3411 return dev_queue->state & QUEUE_STATE_ANY_XOFF; in netif_xmit_stopped()
3415 netif_xmit_frozen_or_stopped(const struct netdev_queue *dev_queue) in netif_xmit_frozen_or_stopped() argument
[all …]
/kernel/linux/linux-5.10/include/net/
Dsch_generic.h90 struct netdev_queue *dev_queue; member
544 struct Qdisc *q = rcu_dereference_rtnl(qdisc->dev_queue->qdisc); in qdisc_root()
551 return rcu_dereference_bh(qdisc->dev_queue->qdisc); in qdisc_root_bh()
556 return qdisc->dev_queue->qdisc_sleeping; in qdisc_root_sleeping()
596 return qdisc->dev_queue->dev; in qdisc_dev()
681 struct Qdisc *dev_graft_qdisc(struct netdev_queue *dev_queue,
711 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
715 struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
Dpkt_sched.h144 return dev_net(q->dev_queue->dev); in qdisc_net()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c312 struct netdev_queue *dev_queue; in hns_nic_net_xmit_hw() local
363 dev_queue = netdev_get_tx_queue(ndev, skb->queue_mapping); in hns_nic_net_xmit_hw()
364 netdev_tx_sent_queue(dev_queue, skb->len); in hns_nic_net_xmit_hw()
953 struct netdev_queue *dev_queue; in hns_nic_tx_poll_one() local
982 dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); in hns_nic_tx_poll_one()
983 netdev_tx_completed_queue(dev_queue, pkts, bytes); in hns_nic_tx_poll_one()
994 if (netif_tx_queue_stopped(dev_queue) && in hns_nic_tx_poll_one()
996 netif_tx_wake_queue(dev_queue); in hns_nic_tx_poll_one()
1037 struct netdev_queue *dev_queue; in hns_nic_tx_clr_all_bufs() local
1047 dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); in hns_nic_tx_clr_all_bufs()
[all …]
Dhns_ethtool.c377 struct netdev_queue *dev_queue; in __lb_other_process() local
408 dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); in __lb_other_process()
409 netdev_tx_reset_queue(dev_queue); in __lb_other_process()
/kernel/linux/linux-5.10/drivers/net/xen-netback/
Dxenbus.c31 struct netdev_queue *dev_queue; in xenvif_read_io_ring() local
92 dev_queue = netdev_get_tx_queue(queue->vif->dev, queue->id); in xenvif_read_io_ring()
97 netif_tx_queue_stopped(dev_queue) ? "stopped" : "running"); in xenvif_read_io_ring()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c482 struct netdev_queue *dev_queue; in hns3_reset_tx_queue() local
486 dev_queue = netdev_get_tx_queue(ndev, in hns3_reset_tx_queue()
488 netdev_tx_reset_queue(dev_queue); in hns3_reset_tx_queue()
1477 struct netdev_queue *dev_queue; in hns3_nic_net_xmit() local
1523 dev_queue = netdev_get_tx_queue(netdev, ring->queue_index); in hns3_nic_net_xmit()
1524 doorbell = __netdev_tx_sent_queue(dev_queue, skb->len, in hns3_nic_net_xmit()
2599 struct netdev_queue *dev_queue; in hns3_clean_tx_ring() local
2616 dev_queue = netdev_get_tx_queue(netdev, ring->tqp->tqp_index); in hns3_clean_tx_ring()
2617 netdev_tx_completed_queue(dev_queue, pkts, bytes); in hns3_clean_tx_ring()
2625 if (netif_tx_queue_stopped(dev_queue) && in hns3_clean_tx_ring()
[all …]
/kernel/linux/linux-5.10/tools/perf/Documentation/
Dperf-trace.txt326 next block:*_unplug and the next three net:*dev_queue events, this last one
329 …# perf trace -e sched:*switch/nr=2/,block:*_plug/nr=4/,block:*_unplug/nr=1/,net:*dev_queue/nr=3,ma…

12