| /f-stack/dpdk/drivers/net/txgbe/base/ |
| H A D | txgbe_dcb.c | 17 txgbe_dcb_pfc_enable(struct txgbe_hw *hw, uint8_t tc_num) in txgbe_dcb_pfc_enable() argument 35 if (!hw->fc.high_water[tc_num] || in txgbe_dcb_pfc_enable() 36 !hw->fc.low_water[tc_num]) { in txgbe_dcb_pfc_enable() 42 if (hw->fc.low_water[tc_num] >= hw->fc.high_water[tc_num]) { in txgbe_dcb_pfc_enable() 120 hw->fc.high_water[tc_num]) { in txgbe_dcb_pfc_enable() 121 fcrtl = TXGBE_FCWTRLO_TH(hw->fc.low_water[tc_num]) | in txgbe_dcb_pfc_enable() 123 fcrth = TXGBE_FCWTRHI_TH(hw->fc.high_water[tc_num]) | in txgbe_dcb_pfc_enable() 133 fcrth = rd32(hw, TXGBE_PBRXSIZE(tc_num)) - 32; in txgbe_dcb_pfc_enable() 135 wr32(hw, TXGBE_FCWTRLO(tc_num), fcrtl); in txgbe_dcb_pfc_enable() 136 wr32(hw, TXGBE_FCWTRHI(tc_num), fcrth); in txgbe_dcb_pfc_enable()
|
| H A D | txgbe_dcb.h | 95 int txgbe_dcb_pfc_enable(struct txgbe_hw *hw, u8 tc_num);
|
| /f-stack/dpdk/drivers/net/ixgbe/ |
| H A D | rte_pmd_ixgbe.h | 405 uint8_t tc_num,
|
| H A D | rte_pmd_ixgbe.c | 710 uint8_t tc_num, in rte_pmd_ixgbe_set_tc_bw_alloc() argument 729 if (tc_num > IXGBE_DCB_MAX_TRAFFIC_CLASS) { in rte_pmd_ixgbe_set_tc_bw_alloc() 751 if (nb_tcs != tc_num) { in rte_pmd_ixgbe_set_tc_bw_alloc() 776 bw_conf->tc_num = nb_tcs; in rte_pmd_ixgbe_set_tc_bw_alloc()
|
| H A D | ixgbe_ethdev.c | 4820 if ((!hw->fc.high_water[tc_num]) || (!hw->fc.low_water[tc_num])) { in ixgbe_dcb_pfc_enable_generic() 4826 if (hw->fc.low_water[tc_num] >= hw->fc.high_water[tc_num]) { in ixgbe_dcb_pfc_enable_generic() 4905 hw->fc.high_water[tc_num]) { in ixgbe_dcb_pfc_enable_generic() 4910 IXGBE_WRITE_REG(hw, IXGBE_FCRTL_82599(tc_num), 0); in ixgbe_dcb_pfc_enable_generic() 4919 IXGBE_WRITE_REG(hw, IXGBE_FCRTH_82599(tc_num), fcrth); in ixgbe_dcb_pfc_enable_generic() 4940 ret_val = ixgbe_dcb_pfc_enable_generic(hw, tc_num); in ixgbe_dcb_pfc_enable() 4951 uint8_t tc_num; in ixgbe_priority_flow_ctrl_set() local 4968 tc_num = map[pfc_conf->priority]; in ixgbe_priority_flow_ctrl_set() 4987 hw->fc.low_water[tc_num] = pfc_conf->fc.low_water; in ixgbe_priority_flow_ctrl_set() 4988 hw->fc.high_water[tc_num] = pfc_conf->fc.high_water; in ixgbe_priority_flow_ctrl_set() [all …]
|
| H A D | ixgbe_ethdev.h | 409 uint8_t tc_num; /* Number of TCs. */ member
|
| H A D | ixgbe_rxtx.c | 4175 if (bw_conf->tc_num != nb_tcs) in ixgbe_dcb_hw_configure() 4190 if (bw_conf->tc_num != nb_tcs) in ixgbe_dcb_hw_configure()
|
| /f-stack/dpdk/drivers/net/hinic/base/ |
| H A D | hinic_pmd_niccfg.c | 1114 int hinic_rss_cfg(void *hwdev, u8 rss_en, u8 tmpl_idx, u8 tc_num, u8 *prio_tc) in hinic_rss_cfg() argument 1121 if (!hwdev || !prio_tc || (tc_num & (tc_num - 1))) { in hinic_rss_cfg() 1123 tc_num); in hinic_rss_cfg() 1132 rss_cfg.rq_priority_number = tc_num ? (u8)ilog2(tc_num) : 0; in hinic_rss_cfg()
|
| H A D | hinic_pmd_niccfg.h | 895 int hinic_rss_cfg(void *hwdev, u8 rss_en, u8 tmpl_idx, u8 tc_num, u8 *prio_tc);
|
| /f-stack/dpdk/drivers/net/i40e/ |
| H A D | rte_pmd_i40e.h | 669 uint8_t tc_num,
|
| H A D | rte_pmd_i40e.c | 1133 uint8_t tc_num, uint8_t *bw_weight) in rte_pmd_i40e_set_vf_tc_bw_alloc() argument 1165 if (tc_num > I40E_MAX_TRAFFIC_CLASS) { in rte_pmd_i40e_set_vf_tc_bw_alloc() 1176 if (sum != tc_num) { in rte_pmd_i40e_set_vf_tc_bw_alloc() 1184 for (i = 0; i < tc_num; i++) { in rte_pmd_i40e_set_vf_tc_bw_alloc()
|
| /f-stack/dpdk/drivers/net/hns3/ |
| H A D | hns3_ethdev.c | 3090 pf->tc_max = cfg.tc_num; in hns3_get_board_configuration() 3399 uint8_t tc_num; in hns3_is_rx_buf_ok() local 3402 tc_num = hns3_get_tc_num(hw); in hns3_is_rx_buf_ok() 3412 shared_buf_tc = tc_num * aligned_mps + aligned_mps; in hns3_is_rx_buf_ok() 3436 if (tc_num <= NEED_RESERVE_TC_NUM) in hns3_is_rx_buf_ok() 3440 if (tc_num) in hns3_is_rx_buf_ok() 3441 hi_thrd = hi_thrd / tc_num; in hns3_is_rx_buf_ok() 3583 uint32_t tc_num = hns3_get_tc_num(hw); in hns3_only_alloc_priv_buff() local 3591 if (tc_num) in hns3_only_alloc_priv_buff() 3592 rx_priv = rx_priv / tc_num; in hns3_only_alloc_priv_buff() [all …]
|
| H A D | hns3_ethdev.h | 148 uint8_t tc_num; member
|
| /f-stack/dpdk/drivers/net/txgbe/ |
| H A D | txgbe_ethdev.h | 135 uint8_t tc_num; /* Number of TCs. */ member
|
| H A D | txgbe_ethdev.c | 2982 uint8_t tc_num; in txgbe_priority_flow_ctrl_set() local 2997 tc_num = map[pfc_conf->priority]; in txgbe_priority_flow_ctrl_set() 2998 rx_buf_size = rd32(hw, TXGBE_PBRXSIZE(tc_num)); in txgbe_priority_flow_ctrl_set() 3015 hw->fc.low_water[tc_num] = pfc_conf->fc.low_water; in txgbe_priority_flow_ctrl_set() 3016 hw->fc.high_water[tc_num] = pfc_conf->fc.high_water; in txgbe_priority_flow_ctrl_set() 3018 err = txgbe_dcb_pfc_enable(hw, tc_num); in txgbe_priority_flow_ctrl_set()
|
| H A D | txgbe_rxtx.c | 3401 if (bw_conf->tc_num != nb_tcs) in txgbe_dcb_hw_configure() 3416 if (bw_conf->tc_num != nb_tcs) in txgbe_dcb_hw_configure()
|
| /f-stack/dpdk/drivers/net/axgbe/ |
| H A D | axgbe_ethdev.c | 1282 uint8_t tc_num; in axgbe_priority_flow_ctrl_set() local 1284 tc_num = pdata->pfc_map[pfc_conf->priority]; in axgbe_priority_flow_ctrl_set() 1295 AXGMAC_MTL_IOWRITE_BITS(pdata, tc_num, MTL_Q_RQFCR, RFA, in axgbe_priority_flow_ctrl_set() 1297 AXGMAC_MTL_IOWRITE_BITS(pdata, tc_num, MTL_Q_RQFCR, RFD, in axgbe_priority_flow_ctrl_set() 1300 switch (tc_num) { in axgbe_priority_flow_ctrl_set()
|
| /f-stack/dpdk/drivers/net/ice/base/ |
| H A D | ice_sched.c | 271 return pi->sib_head[parent->tc_num][layer]; in ice_sched_get_first_node() 288 if (pi->root->children[i]->tc_num == tc) in ice_sched_get_tc_node() 349 if (pi->sib_head[node->tc_num][node->tx_sched_layer] == node) in ice_free_sched_node() 350 pi->sib_head[node->tc_num][node->tx_sched_layer] = in ice_free_sched_node() 944 new_node->tc_num = tc_node->tc_num; in ice_sched_add_elems() 956 if (!pi->sib_head[tc_node->tc_num][layer]) in ice_sched_add_elems() 957 pi->sib_head[tc_node->tc_num][layer] = new_node; in ice_sched_add_elems()
|
| H A D | ice_dcb.c | 1383 tc_node->tc_num = j; in ice_update_port_tc_tree_cfg() 1399 node->tc_num = j; in ice_update_port_tc_tree_cfg()
|
| H A D | ice_type.h | 605 u8 tc_num; member
|
| /f-stack/dpdk/app/test-pmd/ |
| H A D | cmdline.c | 12400 uint8_t *tc_num, in vf_tc_min_bw_parse_bw_list() argument 12433 *tc_num = ret; in vf_tc_min_bw_parse_bw_list() 12448 uint8_t tc_num; in cmd_vf_tc_min_bw_parsed() local 12455 ret = vf_tc_min_bw_parse_bw_list(bw, &tc_num, res->bw_list); in cmd_vf_tc_min_bw_parsed() 12461 tc_num, bw); in cmd_vf_tc_min_bw_parsed() 12507 uint8_t tc_num; in cmd_tc_min_bw_parsed() local 12521 ret = vf_tc_min_bw_parse_bw_list(bw, &tc_num, res->bw_list); in cmd_tc_min_bw_parsed() 12526 ret = rte_pmd_ixgbe_set_tc_bw_alloc(res->port_id, tc_num, bw); in cmd_tc_min_bw_parsed()
|