Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c55 u8 num_tc = 0; in fm10k_dcbnl_ieee_setets() local
64 if (ets->prio_tc[i] > num_tc) in fm10k_dcbnl_ieee_setets()
65 num_tc = ets->prio_tc[i]; in fm10k_dcbnl_ieee_setets()
69 if (num_tc) in fm10k_dcbnl_ieee_setets()
70 num_tc++; in fm10k_dcbnl_ieee_setets()
72 if (num_tc > IEEE_8021QAZ_MAX_TCS) in fm10k_dcbnl_ieee_setets()
76 if (num_tc != netdev_get_num_tc(dev)) { in fm10k_dcbnl_ieee_setets()
77 err = fm10k_setup_tc(dev, num_tc); in fm10k_dcbnl_ieee_setets()
/drivers/net/ethernet/sfc/falcon/
Dtx.c435 unsigned tc, num_tc; in ef4_setup_tc() local
441 num_tc = mqprio->num_tc; in ef4_setup_tc()
443 if (ef4_nic_rev(efx) < EF4_REV_FALCON_B0 || num_tc > EF4_MAX_TX_TC) in ef4_setup_tc()
448 if (num_tc == net_dev->num_tc) in ef4_setup_tc()
451 for (tc = 0; tc < num_tc; tc++) { in ef4_setup_tc()
456 if (num_tc > net_dev->num_tc) { in ef4_setup_tc()
475 net_dev->num_tc = num_tc; in ef4_setup_tc()
479 max_t(int, num_tc, 1) * in ef4_setup_tc()
490 net_dev->num_tc = num_tc; in ef4_setup_tc()
Dnet_driver.h1214 return !(tx_queue->efx->net_dev->num_tc < 2 && in ef4_tx_queue_used()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c134 if (tc >= hdev->tm_info.num_tc) in hclge_fill_pri_array()
392 kinfo->num_tc = in hclge_tm_vport_tc_info_update()
393 min_t(u16, kinfo->num_tqps, hdev->tm_info.num_tc); in hclge_tm_vport_tc_info_update()
396 kinfo->num_tqps / kinfo->num_tc); in hclge_tm_vport_tc_info_update()
397 vport->qs_offset = hdev->tm_info.num_tc * vport->vport_id; in hclge_tm_vport_tc_info_update()
401 for (i = 0; i < kinfo->num_tc; i++) { in hclge_tm_vport_tc_info_update()
436 for (i = 0; i < hdev->tm_info.num_tc; i++) { in hclge_tm_tc_info_init()
446 (i >= hdev->tm_info.num_tc) ? 0 : i; in hclge_tm_tc_info_init()
469 for (k = 0; k < hdev->tm_info.num_tc; k++) in hclge_tm_pg_info_init()
580 for (i = 0; i < kinfo->num_tc; i++) { in hclge_vport_q_to_qs_map()
[all …]
Dhclge_main.c1060 hdev->tm_info.num_tc = cfg.tc_num; in hclge_configure()
1069 if ((hdev->tm_info.num_tc > HNAE3_MAX_TC) || in hclge_configure()
1070 (hdev->tm_info.num_tc < 1)) { in hclge_configure()
1072 hdev->tm_info.num_tc); in hclge_configure()
1073 hdev->tm_info.num_tc = 1; in hclge_configure()
1199 kinfo->num_tc = min_t(u16, num_tqps, hdev->tm_info.num_tc); in hclge_knic_setup()
1201 = min_t(u16, hdev->rss_size_max, num_tqps / kinfo->num_tc); in hclge_knic_setup()
1202 kinfo->num_tqps = kinfo->rss_size * kinfo->num_tc; in hclge_knic_setup()
Dhclge_main.h196 u8 num_tc; member
/drivers/net/ethernet/sfc/
Dtx.c666 unsigned tc, num_tc; in efx_setup_tc() local
672 num_tc = mqprio->num_tc; in efx_setup_tc()
674 if (num_tc > EFX_MAX_TX_TC) in efx_setup_tc()
679 if (num_tc == net_dev->num_tc) in efx_setup_tc()
682 for (tc = 0; tc < num_tc; tc++) { in efx_setup_tc()
687 if (num_tc > net_dev->num_tc) { in efx_setup_tc()
706 net_dev->num_tc = num_tc; in efx_setup_tc()
710 max_t(int, num_tc, 1) * in efx_setup_tc()
721 net_dev->num_tc = num_tc; in efx_setup_tc()
Dnet_driver.h1372 return !(tx_queue->efx->net_dev->num_tc < 2 && in efx_tx_queue_used()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c55 for (i = 0; i < c->num_tc; i++) in mlx5e_napi_poll()
78 for (i = 0; i < c->num_tc; i++) in mlx5e_napi_poll()
Den_main.c213 for (j = 0; j < priv->channels.params.num_tc; j++) { in mlx5e_update_sw_counters()
1618 for (tc = 0; tc < c->num_tc; tc++) { in mlx5e_open_tx_cqs()
1638 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_close_tx_cqs()
1649 for (tc = 0; tc < params->num_tc; tc++) { in mlx5e_open_sqs()
1671 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_close_sqs()
1777 c->num_tc = params->num_tc; in mlx5e_open_channel()
1859 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_activate_channel()
1870 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_deactivate_channel()
2580 int ntc = priv->channels.params.num_tc; in mlx5e_netdev_set_tcs()
2609 for (tc = 0; tc < c->num_tc; tc++) { in mlx5e_build_channels_tx_maps()
[all …]
Den_rep.c123 for (j = 0; j < priv->channels.params.num_tc; j++) { in mlx5e_rep_update_sw_counters()
208 sqs = kcalloc(priv->channels.num * priv->channels.params.num_tc, sizeof(u16), GFP_KERNEL); in mlx5e_add_sqs_fwd_rules()
214 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_add_sqs_fwd_rules()
819 params->num_tc = 1; in mlx5e_build_rep_params()
Den_ethtool.c172 (NUM_SQ_STATS * (priv)->channels.num * (priv)->channels.params.num_tc)
303 for (tc = 0; tc < priv->channels.params.num_tc; tc++) in mlx5e_fill_stats_strings()
445 for (tc = 0; tc < priv->channels.params.num_tc; tc++) in mlx5e_ethtool_get_ethtool_stats()
740 for (tc = 0; tc < c->num_tc; tc++) { in mlx5e_set_priv_channels_coalesce()
Den.h225 u8 num_tc; member
583 u8 num_tc; member
Dport.c566 u8 num_tc = MLX5_CAP_GEN(mdev, max_tc) ? : 8; in mlx5_max_tc() local
568 return num_tc - 1; in mlx5_max_tc()
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c354 u8 num_tc; in dpaa_setup_tc() local
361 num_tc = mqprio->num_tc; in dpaa_setup_tc()
363 if (num_tc == priv->num_tc) in dpaa_setup_tc()
366 if (!num_tc) { in dpaa_setup_tc()
371 if (num_tc > DPAA_TC_NUM) { in dpaa_setup_tc()
377 netdev_set_num_tc(net_dev, num_tc); in dpaa_setup_tc()
379 for (i = 0; i < num_tc; i++) in dpaa_setup_tc()
384 priv->num_tc = num_tc ? : 1; in dpaa_setup_tc()
385 netif_set_real_num_tx_queues(net_dev, priv->num_tc * DPAA_TC_TXQ_NUM); in dpaa_setup_tc()
2811 priv->num_tc = 1; in dpaa_eth_probe()
[all …]
Ddpaa_eth.h161 u8 num_tc; member
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c309 u8 num_tc; in ixgbe_pci_sriov_enable() local
333 num_tc = netdev_get_num_tc(adapter->netdev); in ixgbe_pci_sriov_enable()
335 if (num_tc > 4) { in ixgbe_pci_sriov_enable()
337 … is configured with %d TCs, Creating more than %d VFs is not allowed\n", num_tc, IXGBE_MAX_VFS_8TC… in ixgbe_pci_sriov_enable()
340 } else if ((num_tc > 1) && (num_tc <= 4)) { in ixgbe_pci_sriov_enable()
342 … is configured with %d TCs, Creating more than %d VFs is not allowed\n", num_tc, IXGBE_MAX_VFS_4TC… in ixgbe_pci_sriov_enable()
347 … is configured with %d TCs, Creating more than %d VFs is not allowed\n", num_tc, IXGBE_MAX_VFS_1TC… in ixgbe_pci_sriov_enable()
/drivers/dma/
Dedma.c238 unsigned num_tc; member
696 if (eventq_no >= ecc->num_tc) in edma_assign_channel_eventq()
1944 ecc->num_tc = value + 1; in edma_setup_from_hw()
1953 dev_dbg(dev, "num_tc: %u\n", ecc->num_tc); in edma_setup_from_hw()
1970 queue_priority_map = devm_kcalloc(dev, ecc->num_tc + 1, sizeof(s8), in edma_setup_from_hw()
1975 for (i = 0; i < ecc->num_tc; i++) { in edma_setup_from_hw()
2158 dma_spec->args[1] < echan->ecc->num_tc) { in of_edma_xlate()
2341 ecc->tc_list = devm_kcalloc(dev, ecc->num_tc, in edma_probe()
2351 if (ret || i == ecc->num_tc) in edma_probe()
/drivers/net/ethernet/ti/
Dnetcp_core.c1884 u8 num_tc; in netcp_setup_tc() local
1894 num_tc = mqprio->num_tc; in netcp_setup_tc()
1898 (dev->real_num_tx_queues < num_tc)) in netcp_setup_tc()
1902 if (num_tc) { in netcp_setup_tc()
1903 netdev_set_num_tc(dev, num_tc); in netcp_setup_tc()
1904 for (i = 0; i < num_tc; i++) in netcp_setup_tc()
/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h391 u8 num_tc; /* Total number of enabled TCs */ member
/drivers/net/ethernet/mellanox/mlx4/
Dport.c2123 u8 num_tc = dev->caps.max_tc_eth; in mlx4_max_tc() local
2125 if (!num_tc) in mlx4_max_tc()
2126 num_tc = MLX4_TC_MAX_NUMBER; in mlx4_max_tc()
2128 return num_tc; in mlx4_max_tc()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c4237 int bnx2x_setup_tc(struct net_device *dev, u8 num_tc) in bnx2x_setup_tc() argument
4247 if (!num_tc) { in bnx2x_setup_tc()
4253 if (num_tc > bp->max_cos) { in bnx2x_setup_tc()
4255 num_tc, bp->max_cos); in bnx2x_setup_tc()
4260 if (netdev_set_num_tc(dev, num_tc)) { in bnx2x_setup_tc()
4261 BNX2X_ERR("failed to declare %d traffic classes\n", num_tc); in bnx2x_setup_tc()
4310 return bnx2x_setup_tc(dev, mqprio->num_tc); in __bnx2x_setup_tc()
Dbnx2x_cmn.h490 int bnx2x_setup_tc(struct net_device *dev, u8 num_tc);
/drivers/net/ethernet/qlogic/qed/
Dqed_int.c1374 u8 num_tc = p_hwfn->hw_info.num_hw_tc; in qed_int_cau_conf_sb() local
1396 for (i = 0; i < num_tc; i++) { in qed_int_cau_conf_sb()
/drivers/net/ethernet/intel/i40e/
Di40e_main.c4827 u8 num_tc = 0; in i40e_dcb_get_num_tc() local
4835 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc()
4841 if (num_tc & BIT(i)) { in i40e_dcb_get_num_tc()
4869 u8 num_tc = i40e_dcb_get_num_tc(dcbcfg); in i40e_dcb_get_enabled_tc() local
4873 for (i = 0; i < num_tc; i++) in i40e_dcb_get_enabled_tc()
4889 u8 num_tc = 0; in i40e_pf_get_num_tc() local
4908 num_tc++; in i40e_pf_get_num_tc()
4910 return num_tc; in i40e_pf_get_num_tc()
5661 return i40e_setup_tc(netdev, mqprio->num_tc); in __i40e_setup_tc()

12