Searched refs:num_tc (Results 1 – 4 of 4) sorted by relevance
/net/sched/ |
D | sch_mqprio.c | 67 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 …]
|
D | sch_taprio.c | 928 if (!qopt && !dev->num_tc) { in taprio_parse_mqprio_opt() 936 if (dev->num_tc) in taprio_parse_mqprio_opt() 940 if (qopt->num_tc > TC_MAX_QUEUE) { in taprio_parse_mqprio_opt() 946 if (qopt->num_tc > dev->num_tx_queues) { in taprio_parse_mqprio_opt() 953 if (qopt->prio_tc_map[i] >= qopt->num_tc) { in taprio_parse_mqprio_opt() 959 for (i = 0; i < qopt->num_tc; i++) { in taprio_parse_mqprio_opt() 976 for (j = i + 1; j < qopt->num_tc; j++) { in taprio_parse_mqprio_opt() 1201 for (i = 0; i < dev->num_tc; i++) { in tc_map_to_queue_mask() 1403 if (!mqprio || mqprio->num_tc != dev->num_tc) in taprio_mqprio_cmp() 1406 for (i = 0; i < mqprio->num_tc; i++) in taprio_mqprio_cmp() [all …]
|
/net/core/ |
D | net-sysfs.c | 1210 return dev->num_tc < 0 ? sprintf(buf, "%d%d\n", tc, dev->num_tc) : in traffic_class_show() 1375 int cpu, len, ret, num_tc = 1, tc = 0; in xps_cpus_show() local 1389 if (dev->num_tc) { in xps_cpus_show() 1391 num_tc = dev->num_tc; in xps_cpus_show() 1392 if (num_tc < 0) { in xps_cpus_show() 1416 int i, tci = cpu * num_tc + tc; in xps_cpus_show() 1487 int j, len, ret, num_tc = 1, tc = 0; in xps_rxqs_show() local 1497 if (dev->num_tc) { in xps_rxqs_show() 1498 num_tc = dev->num_tc; in xps_rxqs_show() 1518 int i, tci = j * num_tc + tc; in xps_rxqs_show()
|
D | dev.c | 2411 dev->num_tc = 0; in netif_setup_tc() 2430 if (dev->num_tc) { in netdev_txq_to_tc() 2489 int num_tc = dev->num_tc ? : 1; in remove_xps_queue_cpu() local 2493 for (tci = cpu * num_tc; num_tc--; tci++) { in remove_xps_queue_cpu() 2633 int maps_sz, num_tc = 1, tc = 0; in __netif_set_xps_queue() local 2640 if (dev->num_tc) { in __netif_set_xps_queue() 2642 num_tc = dev->num_tc; in __netif_set_xps_queue() 2643 if (num_tc < 0) in __netif_set_xps_queue() 2656 maps_sz = XPS_RXQ_DEV_MAPS_SIZE(num_tc, dev->num_rx_queues); in __netif_set_xps_queue() 2660 maps_sz = XPS_CPU_DEV_MAPS_SIZE(num_tc); in __netif_set_xps_queue() [all …]
|