Home
last modified time | relevance | path

Searched refs:prio_tc (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c40 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
55 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
78 u8 *prio_tc) in hclge_dcb_common_validate() argument
90 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
93 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
118 if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) in hclge_ets_validate()
121 if (ets->prio_tc[i] > max_tc) in hclge_ets_validate()
122 max_tc = ets->prio_tc[i]; in hclge_ets_validate()
125 ret = hclge_dcb_common_validate(hdev, max_tc + 1, ets->prio_tc); in hclge_ets_validate()
326 u8 i, j, pfc_map, *prio_tc; in hclge_ieee_setpfc() local
[all …]
Dhclge_tm.c230 tc = hdev->tm_info.prio_tc[pri_id]; in hclge_fill_pri_array()
618 memcpy(kinfo->prio_tc, hdev->tm_info.prio_tc, in hclge_tm_vport_tc_info_update()
619 sizeof_field(struct hnae3_knic_private_info, prio_tc)); in hclge_tm_vport_tc_info_update()
647 hdev->tm_info.prio_tc[i] = in hclge_tm_tc_info_init()
1419 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc) in hclge_tm_prio_tc_info_update() argument
1426 hdev->tm_info.prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
1430 kinfo->prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
Dhclge_tm.h162 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
Dhclge_main.h364 u8 prio_tc[HNAE3_MAX_USER_PRIO]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_82599.c25 u8 *prio_tc) in ixgbe_dcb_config_rx_arbiter_82599() argument
42 reg |= (prio_tc[i] << (i * IXGBE_RTRUP2TC_UP_SHIFT)); in ixgbe_dcb_config_rx_arbiter_82599()
136 u8 *prio_tc) in ixgbe_dcb_config_tx_data_arbiter_82599() argument
153 reg |= (prio_tc[i] << (i * IXGBE_RTTUP2TC_UP_SHIFT)); in ixgbe_dcb_config_tx_data_arbiter_82599()
190 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_config_pfc_82599() argument
218 if (prio_tc[i] > max_tc) in ixgbe_dcb_config_pfc_82599()
219 max_tc = prio_tc[i]; in ixgbe_dcb_config_pfc_82599()
228 if ((prio_tc[j] == i) && (pfc_en & BIT(j))) { in ixgbe_dcb_config_pfc_82599()
334 u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) in ixgbe_dcb_hw_config_82599() argument
337 prio_type, prio_tc); in ixgbe_dcb_hw_config_82599()
[all …]
Dixgbe_dcb_82599.h73 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
81 u8 *prio_tc);
94 u8 *prio_tc);
98 u8 *prio_tc);
Dixgbe_dcb_nl.c318 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
335 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
338 prio_type, prio_tc); in ixgbe_dcbnl_set_all()
341 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
349 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
351 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
353 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
503 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets()
527 adapter->ixgbe_ieee_ets->prio_tc[i] = in ixgbe_dcbnl_ieee_setets()
531 adapter->ixgbe_ieee_ets->prio_tc); in ixgbe_dcbnl_ieee_setets()
[all …]
Dixgbe_dcb.c256 u8 prio_tc[MAX_TRAFFIC_CLASS]; in ixgbe_dcb_hw_config() local
266 ixgbe_dcb_unpack_map(dcb_config, DCB_TX_CONFIG, prio_tc); in ixgbe_dcb_hw_config()
278 bwgid, ptype, prio_tc); in ixgbe_dcb_hw_config()
286 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_hw_pfc_config() argument
296 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_pfc_config()
333 bwg_id, prio_type, ets->prio_tc); in ixgbe_dcb_hw_ets()
338 u8 *prio_type, u8 *prio_tc) in ixgbe_dcb_hw_ets_config() argument
355 bwg_id, prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
359 prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c26 ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i); in fm10k_dcbnl_ieee_getets()
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()
67 netdev_set_prio_tc_map(dev, i, ets->prio_tc[i]); in fm10k_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
138 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets()
159 ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dqos_headroom.sh124 __mlnx_qos -i $swp --prio_tc=0,2,4,6,1,3,5,7 > /dev/null
130 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,0,0,0 > /dev/null
177 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,1,2,3 > /dev/null
225 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,0,0,0 > /dev/null
245 __mlnx_qos -i $swp --prio_tc=0,1,2,3,4,5,6,7 > /dev/null
261 __mlnx_qos -i $swp --prio_tc=0,0,0,0,0,0,0,0 > /dev/null
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c56 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
83 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
244 (my_ets->prio_tc[pri] == i)) { in bnxt_hwrm_queue_pfc_cfg()
440 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate()
442 ets->prio_tc[i]); in bnxt_ets_validate()
445 if (ets->prio_tc[i] > max_tc) in bnxt_ets_validate()
446 max_tc = ets->prio_tc[i]; in bnxt_ets_validate()
501 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
527 my_ets->prio_tc[i] = IEEE_8021QAZ_MAX_TCS; in bnxt_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c300 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets()
312 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP_HIGH) { in mlx4_en_ets_validate()
314 i, ets->prio_tc[i]); in mlx4_en_ets_validate()
387 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c122 err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]); in mlx5e_dcbnl_ieee_getets()
260 err = mlx5_set_port_prio_tc(mdev, ets->prio_tc); in mlx5e_dcbnl_ieee_setets_core()
277 __func__, i, ets->prio_tc[i]); in mlx5e_dcbnl_ieee_setets_core()
295 if (ets->prio_tc[i] >= MLX5E_MAX_PRIORITY) { in mlx5e_dbcnl_validate_ets()
640 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
644 ets.prio_tc[i]); in mlx5e_dcbnl_setall()
1069 ets.prio_tc[i] = i; in mlx5e_ets_init()
1074 ets.prio_tc[0] = 1; in mlx5e_ets_init()
1075 ets.prio_tc[1] = 0; in mlx5e_ets_init()
Dport.c619 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc) in mlx5_set_port_prio_tc() argument
627 if (prio_tc[i] > mlx5_max_tc(mdev)) in mlx5_set_port_prio_tc()
631 MLX5_SET(qtct_reg, in, tclass, prio_tc[i]); in mlx5_set_port_prio_tc()
Den_stats.c1192 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_prio_update_stats()
1223 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_congest_prio_update_stats()
1445 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate()
77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set()
115 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
118 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
134 mlxsw_sp_port_prio_tc_set(mlxsw_sp_port, i, my_ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c51 memcpy(ets->prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets()
52 sizeof(ets->prio_tc)); in i40e_dcbnl_ieee_getets()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c46 memcpy(ets->prio_tc, dcbxcfg->etscfg.prio_table, sizeof(ets->prio_tc)); in ice_dcbnl_getets()
83 new_cfg->etscfg.prio_table[i] = ets->prio_tc[i]; in ice_dcbnl_setets()
84 if (ets->prio_tc[i] > max_tc) in ice_dcbnl_setets()
85 max_tc = ets->prio_tc[i]; in ice_dcbnl_setets()
/kernel/linux/linux-5.10/include/linux/mlx5/
Dport.h178 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Ddcbnl.h21 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Ddcbnl.h34 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; member
/kernel/linux/linux-5.10/include/uapi/linux/
Ddcbnl.h65 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c2161 memcpy(ets->prio_tc, params->ets_pri_tc_tbl, sizeof(ets->prio_tc)); in qed_dcbnl_get_ieee_ets()
2205 memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc, in qed_dcbnl_ieee_setets()
2206 sizeof(ets->prio_tc)); in qed_dcbnl_ieee_setets()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h677 u8 prio_tc[HNAE3_MAX_USER_PRIO]; /* TC indexed by prio */ member

12