Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c38 u8 num_tc = 0; in fm10k_dcbnl_ieee_setets() local
47 if (ets->prio_tc[i] > num_tc) in fm10k_dcbnl_ieee_setets()
48 num_tc = ets->prio_tc[i]; in fm10k_dcbnl_ieee_setets()
52 if (num_tc) in fm10k_dcbnl_ieee_setets()
53 num_tc++; in fm10k_dcbnl_ieee_setets()
55 if (num_tc > IEEE_8021QAZ_MAX_TCS) in fm10k_dcbnl_ieee_setets()
59 if (num_tc != netdev_get_num_tc(dev)) { in fm10k_dcbnl_ieee_setets()
60 int err = fm10k_setup_tc(dev, num_tc); in fm10k_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c77 static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, in hclge_dcb_common_validate() argument
82 if (num_tc > hdev->tc_max) { in hclge_dcb_common_validate()
85 num_tc, hdev->tc_max); in hclge_dcb_common_validate()
90 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
93 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
98 if (num_tc > hdev->vport[0].alloc_tqps) { in hclge_dcb_common_validate()
101 num_tc, hdev->vport[0].alloc_tqps); in hclge_dcb_common_validate()
162 if (*tc != hdev->tm_info.num_tc) in hclge_ets_validate()
204 ret = client->ops->setup_tc(handle, hdev->tm_info.num_tc); in hclge_client_setup_tc()
240 u8 num_tc = 0; in hclge_ieee_setets() local
[all …]
Dhclge_tm.c232 if (tc >= hdev->tm_info.num_tc) in hclge_fill_pri_array()
538 for (i = 0; i < kinfo->num_tc; i++) { in hclge_tm_qs_shaper_cfg()
569 kinfo->num_tc = vport->vport_id ? 1 : in hclge_tm_vport_tc_info_update()
570 min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc); in hclge_tm_vport_tc_info_update()
575 vport->alloc_tqps / kinfo->num_tc); in hclge_tm_vport_tc_info_update()
592 kinfo->num_tc); in hclge_tm_vport_tc_info_update()
598 kinfo->num_tqps = kinfo->num_tc * kinfo->rss_size; in hclge_tm_vport_tc_info_update()
604 if (hdev->hw_tc_map & BIT(i) && i < kinfo->num_tc) { in hclge_tm_vport_tc_info_update()
638 for (i = 0; i < hdev->tm_info.num_tc; i++) { in hclge_tm_tc_info_init()
648 (i >= hdev->tm_info.num_tc) ? 0 : i; in hclge_tm_tc_info_init()
[all …]
Dhclge_tm.h163 void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc);
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dtx.c432 unsigned tc, num_tc; in ef4_setup_tc() local
438 num_tc = mqprio->num_tc; in ef4_setup_tc()
440 if (ef4_nic_rev(efx) < EF4_REV_FALCON_B0 || num_tc > EF4_MAX_TX_TC) in ef4_setup_tc()
445 if (num_tc == net_dev->num_tc) in ef4_setup_tc()
448 for (tc = 0; tc < num_tc; tc++) { in ef4_setup_tc()
453 if (num_tc > net_dev->num_tc) { in ef4_setup_tc()
472 net_dev->num_tc = num_tc; in ef4_setup_tc()
476 max_t(int, num_tc, 1) * in ef4_setup_tc()
487 net_dev->num_tc = num_tc; in ef4_setup_tc()
/kernel/linux/linux-5.10/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()
195 if (i >= qopt->num_tc) in mqprio_init()
211 if (i >= qopt->num_tc) in mqprio_init()
258 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_init()
261 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_init()
275 netdev_set_num_tc(dev, qopt->num_tc); in mqprio_init()
276 for (i = 0; i < qopt->num_tc; i++) in mqprio_init()
[all …]
Dsch_taprio.c926 if (!qopt && !dev->num_tc) { in taprio_parse_mqprio_opt()
934 if (dev->num_tc) in taprio_parse_mqprio_opt()
938 if (qopt->num_tc > TC_MAX_QUEUE) { in taprio_parse_mqprio_opt()
944 if (qopt->num_tc > dev->num_tx_queues) { in taprio_parse_mqprio_opt()
951 if (qopt->prio_tc_map[i] >= qopt->num_tc) { in taprio_parse_mqprio_opt()
957 for (i = 0; i < qopt->num_tc; i++) { in taprio_parse_mqprio_opt()
974 for (j = i + 1; j < qopt->num_tc; j++) { in taprio_parse_mqprio_opt()
1199 for (i = 0; i < dev->num_tc; i++) { in tc_map_to_queue_mask()
1400 if (!mqprio || mqprio->num_tc != dev->num_tc) in taprio_mqprio_cmp()
1403 for (i = 0; i < mqprio->num_tc; i++) in taprio_mqprio_cmp()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dtx.c610 unsigned tc, num_tc; in efx_setup_tc() local
619 num_tc = mqprio->num_tc; in efx_setup_tc()
621 if (num_tc > EFX_MAX_TX_TC) in efx_setup_tc()
626 if (num_tc == net_dev->num_tc) in efx_setup_tc()
629 for (tc = 0; tc < num_tc; tc++) { in efx_setup_tc()
634 net_dev->num_tc = num_tc; in efx_setup_tc()
637 max_t(int, num_tc, 1) * in efx_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c351 const unsigned int num_tc) in aq_validate_mqprio_opt() argument
358 if (num_tc > tcs_max) { in aq_validate_mqprio_opt()
363 if (num_tc != 0 && !is_power_of_2(num_tc)) { in aq_validate_mqprio_opt()
392 err = aq_validate_mqprio_opt(aq_nic, mqprio, mqprio->qopt.num_tc); in aq_ndo_setup_tc()
396 for (i = 0; i < mqprio->qopt.num_tc; i++) { in aq_ndo_setup_tc()
412 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_mqprio.c19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate()
31 } else if (mqprio->qopt.num_tc > adap->params.nsched_cls) { in cxgb4_mqprio_validate()
47 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_validate()
53 for (j = i + 1; j < mqprio->qopt.num_tc; j++) { in cxgb4_mqprio_validate()
339 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_alloc_tc()
377 for (i = 0; i < tc_port_mqprio->mqprio.qopt.num_tc; i++) in cxgb4_mqprio_free_tc()
444 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_enable_offload()
480 ret = netdev_set_num_tc(dev, mqprio->qopt.num_tc); in cxgb4_mqprio_enable_offload()
485 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_enable_offload()
510 i = mqprio->qopt.num_tc; in cxgb4_mqprio_enable_offload()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_dcb_lib.c55 u8 i, num_tc, ena_tc = 1; in ice_dcb_get_ena_tc() local
57 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_get_ena_tc()
59 for (i = 0; i < num_tc; i++) in ice_dcb_get_ena_tc()
150 u8 num_tc = 0; in ice_dcb_get_num_tc() local
158 num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); in ice_dcb_get_num_tc()
162 if (num_tc & BIT(i)) { in ice_dcb_get_num_tc()
237 u8 num_tc, total_bw = 0; in ice_dcb_bwchk() local
243 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_bwchk()
248 if (num_tc == 1) { in ice_dcb_bwchk()
253 for (i = 0; i < num_tc; i++) in ice_dcb_bwchk()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_priv.c780 static int cpsw_tc_to_fifo(int tc, int num_tc) in cpsw_tc_to_fifo() argument
782 if (tc == num_tc - 1) in cpsw_tc_to_fifo()
946 fifo = cpsw_tc_to_fifo(tc, ndev->num_tc); in cpsw_set_cbs()
997 int fifo, num_tc, count, offset; in cpsw_set_mqprio() local
1002 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio()
1003 if (num_tc > CPSW_TC_NUM) in cpsw_set_mqprio()
1015 if (num_tc) { in cpsw_set_mqprio()
1018 fifo = cpsw_tc_to_fifo(tc, num_tc); in cpsw_set_mqprio()
1022 netdev_set_num_tc(ndev, num_tc); in cpsw_set_mqprio()
1023 for (i = 0; i < num_tc; i++) { in cpsw_set_mqprio()
/kernel/linux/linux-5.10/net/core/
Dnet-sysfs.c1210 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()
Ddev.c2404 dev->num_tc = 0; in netif_setup_tc()
2423 if (dev->num_tc) { in netdev_txq_to_tc()
2482 int num_tc = dev->num_tc ? : 1; in remove_xps_queue_cpu() local
2486 for (tci = cpu * num_tc; num_tc--; tci++) { in remove_xps_queue_cpu()
2626 int maps_sz, num_tc = 1, tc = 0; in __netif_set_xps_queue() local
2631 if (dev->num_tc) { in __netif_set_xps_queue()
2633 num_tc = dev->num_tc; in __netif_set_xps_queue()
2634 if (num_tc < 0) in __netif_set_xps_queue()
2647 maps_sz = XPS_RXQ_DEV_MAPS_SIZE(num_tc, dev->num_rx_queues); in __netif_set_xps_queue()
2651 maps_sz = XPS_CPU_DEV_MAPS_SIZE(num_tc); in __netif_set_xps_queue()
[all …]
/kernel/linux/linux-5.10/include/linux/avf/
Dvirtchnl.h521 u32 num_tc; member
815 valid_len += (vti->num_tc - 1) * in virtchnl_vc_validate_vf_msg()
817 if (vti->num_tc == 0) in virtchnl_vc_validate_vf_msg()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c137 for (i = 0; i < c->num_tc; i++) in mlx5e_napi_poll()
189 for (i = 0; i < c->num_tc; i++) { in mlx5e_napi_poll()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_main.c1121 adapter->num_tc) in iavf_alloc_queues()
1456 adapter->num_tc) in iavf_init_interrupt_scheme()
1458 adapter->num_tc); in iavf_init_interrupt_scheme()
2230 adapter->num_tc) { in iavf_reset_task()
2582 if (mqprio_qopt->qopt.num_tc > IAVF_MAX_TRAFFIC_CLASS || in iavf_validate_ch_config()
2583 mqprio_qopt->qopt.num_tc < 1) in iavf_validate_ch_config()
2586 for (i = 0; i <= mqprio_qopt->qopt.num_tc - 1; i++) { in iavf_validate_ch_config()
2645 u8 num_tc = 0, total_qps = 0; in __iavf_setup_tc() local
2651 num_tc = mqprio_qopt->qopt.num_tc; in __iavf_setup_tc()
2659 adapter->num_tc = 0; in __iavf_setup_tc()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c266 for (i = 0; i < vf->num_tc; i++) { in i40e_get_real_pf_qid()
812 u32 reg, num_tc = 1; /* VF has at least one traffic class */ in i40e_map_pf_queues_to_vsi() local
817 num_tc = vf->num_tc; in i40e_map_pf_queues_to_vsi()
819 for (i = 0; i < num_tc; i++) { in i40e_map_pf_queues_to_vsi()
860 u32 qps, num_tc = 1; /* VF has at least one traffic class */ in i40e_map_pf_to_vf_queues() local
865 num_tc = vf->num_tc; in i40e_map_pf_to_vf_queues()
867 for (i = 0; i < num_tc; i++) { in i40e_map_pf_to_vf_queues()
971 for (j = 0; j < vf->num_tc; j++) { in i40e_free_vf_res()
1046 for (idx = 1; idx < vf->num_tc; idx++) { in i40e_alloc_vf_res()
2017 for (i = 1; i < vf->num_tc; i++) { in i40e_del_qch()
[all …]
Di40e_virtchnl_pf.h109 u8 num_tc; member
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_main.c562 static int qede_setup_tc(struct net_device *ndev, u8 num_tc) in qede_setup_tc() argument
567 if (num_tc > edev->dev_info.num_tc) in qede_setup_tc()
571 netdev_set_num_tc(ndev, num_tc); in qede_setup_tc()
633 return qede_setup_tc(dev, mqprio->num_tc); in qede_setup_tc_offload()
731 info->num_queues * info->num_tc, in qede_alloc_etherdev()
949 fp->txq = kcalloc(edev->dev_info.num_tc, in qede_alloc_fp_array()
1819 edev->dev_info.num_tc); in qede_set_real_num_queues()
2346 u8 num_tc; in qede_load() local
2392 num_tc = netdev_get_num_tc(edev->ndev); in qede_load()
2393 num_tc = num_tc ? num_tc : edev->dev_info.num_tc; in qede_load()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c377 u8 num_tc; in dpaa_setup_tc() local
384 num_tc = mqprio->num_tc; in dpaa_setup_tc()
386 if (num_tc == priv->num_tc) in dpaa_setup_tc()
389 if (!num_tc) { in dpaa_setup_tc()
394 if (num_tc > DPAA_TC_NUM) { in dpaa_setup_tc()
400 netdev_set_num_tc(net_dev, num_tc); in dpaa_setup_tc()
402 for (i = 0; i < num_tc; i++) in dpaa_setup_tc()
407 priv->num_tc = num_tc ? : 1; in dpaa_setup_tc()
408 netif_set_real_num_tx_queues(net_dev, priv->num_tc * DPAA_TC_TXQ_NUM); in dpaa_setup_tc()
3063 priv->num_tc = 1; in dpaa_eth_probe()
[all …]
Ddpaa_eth.h164 u8 num_tc; member
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc.c1564 u8 num_tc; in enetc_setup_tc_mqprio() local
1568 num_tc = mqprio->num_tc; in enetc_setup_tc_mqprio()
1570 if (!num_tc) { in enetc_setup_tc_mqprio()
1584 if (num_tc > priv->num_tx_rings) { in enetc_setup_tc_mqprio()
1594 for (i = 0; i < num_tc; i++) { in enetc_setup_tc_mqprio()
1600 netif_set_real_num_tx_queues(ndev, num_tc); in enetc_setup_tc_mqprio()
1602 netdev_set_num_tc(ndev, num_tc); in enetc_setup_tc_mqprio()
1605 for (i = 0; i < num_tc; i++) in enetc_setup_tc_mqprio()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dreporter_tx.c260 for (tc = 0; tc < priv->channels.params.num_tc; tc++) { in mlx5e_tx_reporter_diagnose()
376 for (tc = 0; tc < priv->channels.params.num_tc; tc++) { in mlx5e_tx_reporter_dump_all_sqs()
/kernel/linux/linux-5.10/drivers/dma/ti/
Dedma.c250 unsigned num_tc; member
712 if (eventq_no >= ecc->num_tc) in edma_assign_channel_eventq()
2099 ecc->num_tc = value + 1; in edma_setup_from_hw()
2108 dev_dbg(dev, "num_tc: %u\n", ecc->num_tc); in edma_setup_from_hw()
2125 queue_priority_map = devm_kcalloc(dev, ecc->num_tc + 1, sizeof(s8), in edma_setup_from_hw()
2130 for (i = 0; i < ecc->num_tc; i++) { in edma_setup_from_hw()
2313 dma_spec->args[1] < echan->ecc->num_tc) { in of_edma_xlate()
2504 ecc->tc_list = devm_kcalloc(dev, ecc->num_tc, in edma_probe()
2514 if (ret || i == ecc->num_tc) in edma_probe()

123