/kernel/linux/linux-5.10/net/sched/ |
D | sch_generic.c | 72 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 …]
|
D | sch_mq.c | 72 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 …]
|
D | sch_mqprio.c | 229 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 …]
|
D | sch_api.c | 1047 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 …]
|
D | sch_plug.c | 187 netif_schedule_queue(sch->dev_queue); in plug_change() 195 netif_schedule_queue(sch->dev_queue); in plug_change()
|
D | sch_taprio.c | 1712 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 …]
|
D | sch_cbs.c | 411 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()
|
D | sch_prio.c | 198 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()
|
D | sch_dsmark.c | 74 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()
|
D | sch_drr.c | 111 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()
|
D | sch_fifo.c | 259 q = qdisc_create_dflt(sch->dev_queue, ops, TC_H_MAKE(sch->handle, 1), in fifo_create_dflt()
|
D | sch_atm.c | 295 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()
|
D | sch_ets.c | 254 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()
|
D | sch_multiq.c | 214 child = qdisc_create_dflt(sch->dev_queue, in multiq_tune()
|
D | sch_htb.c | 1156 (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()
|
D | sch_hfsc.c | 1060 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()
|
D | sch_etf.c | 382 q->queue = sch->dev_queue - netdev_get_tx_queue(dev, 0); in etf_init()
|
/kernel/linux/linux-5.10/include/linux/ |
D | netdevice.h | 3324 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/ |
D | sch_generic.h | 90 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,
|
D | pkt_sched.h | 144 return dev_net(q->dev_queue->dev); in qdisc_net()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 312 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 …]
|
D | hns_ethtool.c | 377 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/ |
D | xenbus.c | 31 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/ |
D | hns3_enet.c | 482 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/ |
D | perf-trace.txt | 326 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…
|