Home
last modified time | relevance | path

Searched refs:num_tc (Results 1 – 4 of 4) sorted by relevance

/net/sched/
Dsch_mqprio.c67 if (qopt->num_tc > TC_MAX_QUEUE) in mqprio_parse_opt()
72 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt()
91 for (i = 0; i < qopt->num_tc; i++) { in mqprio_parse_opt()
103 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_parse_opt()
184 if (i >= qopt->num_tc) in mqprio_parse_nlattr()
213 if (i >= qopt->num_tc) in mqprio_parse_nlattr()
300 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_init()
303 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_init()
317 netdev_set_num_tc(dev, qopt->num_tc); in mqprio_init()
318 for (i = 0; i < qopt->num_tc; i++) in mqprio_init()
[all …]
Dsch_taprio.c950 if (!qopt && !dev->num_tc) { in taprio_parse_mqprio_opt()
958 if (dev->num_tc) in taprio_parse_mqprio_opt()
962 if (qopt->num_tc > TC_MAX_QUEUE) { in taprio_parse_mqprio_opt()
968 if (qopt->num_tc > dev->num_tx_queues) { in taprio_parse_mqprio_opt()
975 if (qopt->prio_tc_map[i] >= qopt->num_tc) { in taprio_parse_mqprio_opt()
981 for (i = 0; i < qopt->num_tc; i++) { in taprio_parse_mqprio_opt()
998 for (j = i + 1; j < qopt->num_tc; j++) { in taprio_parse_mqprio_opt()
1223 for (i = 0; i < dev->num_tc; i++) { in tc_map_to_queue_mask()
1425 if (!mqprio || mqprio->num_tc != dev->num_tc) in taprio_mqprio_cmp()
1428 for (i = 0; i < mqprio->num_tc; i++) in taprio_mqprio_cmp()
[all …]
/net/core/
Ddev.c2378 dev->num_tc = 0; in netif_setup_tc()
2397 if (dev->num_tc) { in netdev_txq_to_tc()
2456 int num_tc = dev_maps->num_tc; in remove_xps_queue_cpu() local
2460 for (tci = cpu * num_tc; num_tc--; tci++) { in remove_xps_queue_cpu()
2578 int i, tci = index * dev_maps->num_tc; in xps_copy_dev_maps()
2582 for (i = 0; i < dev_maps->num_tc; i++, tci++) { in xps_copy_dev_maps()
2600 int maps_sz, num_tc = 1, tc = 0; in __netif_set_xps_queue() local
2606 if (dev->num_tc) { in __netif_set_xps_queue()
2608 num_tc = dev->num_tc; in __netif_set_xps_queue()
2609 if (num_tc < 0) in __netif_set_xps_queue()
[all …]
Dnet-sysfs.c1229 int num_tc, tc; in traffic_class_show() local
1243 num_tc = dev->num_tc; in traffic_class_show()
1258 return num_tc < 0 ? sprintf(buf, "%d%d\n", tc, num_tc) : in traffic_class_show()
1443 if (!dev_maps || tc >= dev_maps->num_tc) in xps_queue_show()
1447 int i, tci = j * dev_maps->num_tc + tc; in xps_queue_show()