Home
last modified time | relevance | path

Searched refs:tc_info (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c949 struct bnxt_tc_info *tc_info = bp->tc_info; in bnxt_tc_put_l2_node() local
955 rc = rhashtable_remove_fast(&tc_info->l2_table, &l2_node->node, in bnxt_tc_put_l2_node()
956 tc_info->l2_ht_params); in bnxt_tc_put_l2_node()
1005 struct bnxt_tc_info *tc_info = bp->tc_info; in bnxt_tc_get_ref_flow_handle() local
1009 l2_node = bnxt_tc_get_l2_node(bp, &tc_info->l2_table, in bnxt_tc_get_ref_flow_handle()
1010 tc_info->l2_ht_params, in bnxt_tc_get_ref_flow_handle()
1155 struct bnxt_tc_info *tc_info = bp->tc_info; in bnxt_tc_get_ref_decap_handle() local
1159 decap_l2_node = bnxt_tc_get_l2_node(bp, &tc_info->decap_l2_table, in bnxt_tc_get_ref_decap_handle()
1160 tc_info->decap_l2_ht_params, in bnxt_tc_get_ref_decap_handle()
1193 struct bnxt_tc_info *tc_info = bp->tc_info; in bnxt_tc_put_decap_l2_node() local
[all …]
Dbnxt_tc.h226 return bp->tc_info && bp->tc_info->enabled; in bnxt_tc_flower_enabled()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c19 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
24 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
57 if (hdev->tm_info.tc_info[i].tc_sch_mode == in hclge_tm_info_to_ieee_ets()
135 if (hdev->tm_info.tc_info[i].tc_sch_mode != in hclge_ets_sch_mode_validate()
149 if (hdev->tm_info.tc_info[i].tc_sch_mode != in hclge_ets_sch_mode_validate()
536 static void hclge_sync_mqprio_qopt(struct hnae3_tc_info *tc_info, in hclge_sync_mqprio_qopt() argument
539 memset(tc_info, 0, sizeof(*tc_info)); in hclge_sync_mqprio_qopt()
540 tc_info->num_tc = mqprio_qopt->qopt.num_tc; in hclge_sync_mqprio_qopt()
541 memcpy(tc_info->prio_tc, mqprio_qopt->qopt.prio_tc_map, in hclge_sync_mqprio_qopt()
543 memcpy(tc_info->tqp_count, mqprio_qopt->qopt.count, in hclge_sync_mqprio_qopt()
[all …]
Dhclge_tm.c543 if (hdev->tm_info.tc_info[pri_id].tc_sch_mode == HCLGE_SCH_MODE_DWRR) in hclge_tm_pri_schd_mode_cfg()
611 for (i = 0; i < kinfo->tc_info.num_tc; i++) { in hclge_tm_qs_shaper_cfg()
638 struct hnae3_tc_info *tc_info = &kinfo->tc_info; in hclge_vport_get_max_rss_size() local
643 if (!tc_info->mqprio_active) in hclge_vport_get_max_rss_size()
644 return vport->alloc_tqps / tc_info->num_tc; in hclge_vport_get_max_rss_size()
647 if (!(hdev->hw_tc_map & BIT(i)) || i >= tc_info->num_tc) in hclge_vport_get_max_rss_size()
649 if (max_rss_size < tc_info->tqp_count[i]) in hclge_vport_get_max_rss_size()
650 max_rss_size = tc_info->tqp_count[i]; in hclge_vport_get_max_rss_size()
659 struct hnae3_tc_info *tc_info = &kinfo->tc_info; in hclge_vport_get_tqp_num() local
664 if (!tc_info->mqprio_active) in hclge_vport_get_tqp_num()
[all …]
Dhclge_main.h360 struct hclge_tc_info tc_info[HNAE3_MAX_TC]; member
Dhclge_mbx.c500 for (i = 0; i < kinfo->tc_info.num_tc; i++) in hclge_get_basic_info()
/linux-6.1.9/drivers/infiniband/hw/irdma/
Dmain.c72 l2params->tc_info[i].egress_virt_up = in irdma_fill_qos_info()
73 qos_info->tc_info[i].egress_virt_up; in irdma_fill_qos_info()
74 l2params->tc_info[i].ingress_virt_up = in irdma_fill_qos_info()
75 qos_info->tc_info[i].ingress_virt_up; in irdma_fill_qos_info()
76 l2params->tc_info[i].prio_type = qos_info->tc_info[i].prio_type; in irdma_fill_qos_info()
77 l2params->tc_info[i].rel_bw = qos_info->tc_info[i].rel_bw; in irdma_fill_qos_info()
78 l2params->tc_info[i].tc_ctx = qos_info->tc_info[i].tc_ctx; in irdma_fill_qos_info()
Dtype.h734 struct irdma_qos_tc_info tc_info[IRDMA_MAX_USER_PRIORITY]; member
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c65 struct otx2_tc_info *tc = &nic->tc_info; in otx2_tc_alloc_ent_bitmap()
708 struct otx2_tc_info *tc_info = &nic->tc_info; in otx2_tc_del_flow() local
712 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in otx2_tc_del_flow()
714 tc_info->flow_ht_params); in otx2_tc_del_flow()
744 WARN_ON(rhashtable_remove_fast(&nic->tc_info.flow_table, in otx2_tc_del_flow()
746 nic->tc_info.flow_ht_params)); in otx2_tc_del_flow()
749 clear_bit(flow_node->bitpos, tc_info->tc_entries_bitmap); in otx2_tc_del_flow()
760 struct otx2_tc_info *tc_info = &nic->tc_info; in otx2_tc_add_flow() local
768 if (bitmap_full(tc_info->tc_entries_bitmap, flow_cfg->max_flows)) { in otx2_tc_add_flow()
790 old_node = rhashtable_lookup_fast(&tc_info->flow_table, in otx2_tc_add_flow()
[all …]
Dotx2_common.h466 struct otx2_tc_info tc_info; member
/linux-6.1.9/arch/ia64/kernel/
Dpalinfo.c296 pal_tc_info_u_t tc_info; in vm_info() local
383 if ((status=ia64_pal_vm_info(i,j, &tc_info, &tc_pages)) != 0) in vm_info()
392 cache_types[j+tc_info.tc_unified], i+1, in vm_info()
393 tc_info.tc_num_sets, in vm_info()
394 tc_info.tc_associativity, in vm_info()
395 tc_info.tc_num_entries); in vm_info()
397 if (tc_info.tc_pf) in vm_info()
399 if (tc_info.tc_unified) in vm_info()
401 if (tc_info.tc_reduce_tr) in vm_info()
409 if (tc_info.tc_unified) in vm_info()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_lib.c954 vsi->tc_cfg.tc_info[i].qoffset = 0; in ice_vsi_setup_q_map()
955 vsi->tc_cfg.tc_info[i].qcount_rx = 1; in ice_vsi_setup_q_map()
956 vsi->tc_cfg.tc_info[i].qcount_tx = 1; in ice_vsi_setup_q_map()
957 vsi->tc_cfg.tc_info[i].netdev_tc = 0; in ice_vsi_setup_q_map()
963 vsi->tc_cfg.tc_info[i].qoffset = offset; in ice_vsi_setup_q_map()
964 vsi->tc_cfg.tc_info[i].qcount_rx = num_rxq_per_tc; in ice_vsi_setup_q_map()
965 vsi->tc_cfg.tc_info[i].qcount_tx = num_txq_per_tc; in ice_vsi_setup_q_map()
966 vsi->tc_cfg.tc_info[i].netdev_tc = netdev_tc++; in ice_vsi_setup_q_map()
3502 vsi->tc_cfg.tc_info[i].netdev_tc, in ice_vsi_cfg_netdev_tc()
3503 vsi->tc_cfg.tc_info[i].qcount_tx, in ice_vsi_cfg_netdev_tc()
[all …]
Dice_dcb_lib.c47 if (ice_find_q_in_range(vsi->tc_cfg.tc_info[tc].qoffset, in ice_is_pfc_causing_hung_q()
48 vsi->tc_cfg.tc_info[tc + 1].qoffset, in ice_is_pfc_causing_hung_q()
238 qoffset = vsi->tc_cfg.tc_info[n].qoffset; in ice_vsi_cfg_dcb_rings()
239 qcount = vsi->tc_cfg.tc_info[n].qcount_tx; in ice_vsi_cfg_dcb_rings()
243 qcount = vsi->tc_cfg.tc_info[n].qcount_rx; in ice_vsi_cfg_dcb_rings()
Dice_idc.c220 qos->tc_info[i].rel_bw = dcbx_cfg->etscfg.tcbwtable[i]; in ice_get_qos_params()
Dice.h227 struct ice_tc_info tc_info[ICE_MAX_TRAFFIC_CLASS]; member
Dice_base.c223 return ring->q_index - vsi->tc_cfg.tc_info[tc].qoffset; in ice_calc_txq_handle()
/linux-6.1.9/include/linux/net/intel/
Diidc.h60 struct iidc_qos_info tc_info[IEEE_8021QAZ_MAX_TCS]; member
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c611 struct hnae3_tc_info *tc_info = &kinfo->tc_info; in hns3_nic_set_real_num_queue() local
615 if (tc_info->num_tc <= 1 && !tc_info->mqprio_active) { in hns3_nic_set_real_num_queue()
618 ret = netdev_set_num_tc(netdev, tc_info->num_tc); in hns3_nic_set_real_num_queue()
625 for (i = 0; i < tc_info->num_tc; i++) in hns3_nic_set_real_num_queue()
626 netdev_set_tc_queue(netdev, i, tc_info->tqp_count[i], in hns3_nic_set_real_num_queue()
627 tc_info->tqp_offset[i]); in hns3_nic_set_real_num_queue()
652 rss_size = alloc_tqps / h->kinfo.tc_info.num_tc; in hns3_get_max_available_channels()
796 netdev_set_prio_tc_map(netdev, i, kinfo->tc_info.prio_tc[i]); in hns3_nic_net_open()
5069 struct hnae3_tc_info *tc_info = &kinfo->tc_info; in hns3_init_tx_ring_tc() local
5072 for (i = 0; i < tc_info->num_tc; i++) { in hns3_init_tx_ring_tc()
[all …]
Dhnae3.h812 struct hnae3_tc_info tc_info; member
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c946 uint32_t tc_info; in cxgb4_ieee_read_ets() local
969 tc_info = be32_to_cpu(pcmd.u.dcb.pgid.pgid); in cxgb4_ieee_read_ets()
985 bwg = (tc_info >> ((7 - i) * 4)) & 0xF; in cxgb4_ieee_read_ets()
/linux-6.1.9/arch/ia64/include/asm/
Dpal.h1598 ia64_pal_vm_info (u64 tc_level, u64 tc_type, pal_tc_info_u_t *tc_info, u64 *tc_pages) in ia64_pal_vm_info() argument
1602 if (tc_info) in ia64_pal_vm_info()
1603 tc_info->pti_val = iprv.v0; in ia64_pal_vm_info()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_main.c1956 vsi->tc_config.tc_info[i].qoffset = offset; in i40e_vsi_setup_queue_map_mqprio()
1957 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map_mqprio()
1958 vsi->tc_config.tc_info[i].netdev_tc = netdev_tc++; in i40e_vsi_setup_queue_map_mqprio()
1964 vsi->tc_config.tc_info[i].qoffset = 0; in i40e_vsi_setup_queue_map_mqprio()
1965 vsi->tc_config.tc_info[i].qcount = 1; in i40e_vsi_setup_queue_map_mqprio()
1966 vsi->tc_config.tc_info[i].netdev_tc = 0; in i40e_vsi_setup_queue_map_mqprio()
2104 vsi->tc_config.tc_info[i].qoffset = offset; in i40e_vsi_setup_queue_map()
2105 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map()
2115 vsi->tc_config.tc_info[i].netdev_tc = netdev_tc++; in i40e_vsi_setup_queue_map()
2126 vsi->tc_config.tc_info[i].qoffset = 0; in i40e_vsi_setup_queue_map()
[all …]
Di40e_debugfs.c473 i, vsi->tc_config.tc_info[i].qoffset, in i40e_dbg_dump_vsi_seid()
474 vsi->tc_config.tc_info[i].qcount, in i40e_dbg_dump_vsi_seid()
475 vsi->tc_config.tc_info[i].netdev_tc); in i40e_dbg_dump_vsi_seid()
Di40e.h315 struct i40e_tc_info tc_info[I40E_MAX_TRAFFIC_CLASS]; member
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c383 kinfo->tc_info.num_tc = num_tc; in hclgevf_knic_setup()
3059 hdev->num_tqps / kinfo->tc_info.num_tc); in hclgevf_get_max_channels()
3102 hdev->num_tqps / kinfo->tc_info.num_tc); in hclgevf_update_rss_size()
3114 kinfo->num_tqps = kinfo->tc_info.num_tc * kinfo->rss_size; in hclgevf_update_rss_size()
3167 cur_tqps, kinfo->rss_size * kinfo->tc_info.num_tc); in hclgevf_set_channels()

12