Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c38 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
53 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
76 u8 *prio_tc) in hclge_dcb_common_validate() argument
88 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
91 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
116 if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) in hclge_ets_validate()
119 if (ets->prio_tc[i] > max_tc) in hclge_ets_validate()
120 max_tc = ets->prio_tc[i]; in hclge_ets_validate()
123 ret = hclge_dcb_common_validate(hdev, max_tc + 1, ets->prio_tc); in hclge_ets_validate()
284 u8 i, j, pfc_map, *prio_tc; in hclge_ieee_getpfc() local
[all …]
Dhclge_tm.c231 tc = hdev->tm_info.prio_tc[pri_id]; in hclge_fill_pri_array()
573 memcpy(kinfo->prio_tc, hdev->tm_info.prio_tc, in hclge_tm_vport_tc_info_update()
574 FIELD_SIZEOF(struct hnae3_knic_private_info, prio_tc)); in hclge_tm_vport_tc_info_update()
602 hdev->tm_info.prio_tc[i] = in hclge_tm_tc_info_init()
1359 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc) in hclge_tm_prio_tc_info_update() argument
1366 hdev->tm_info.prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
1370 kinfo->prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
Dhclge_tm.h148 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
Dhclge_main.h354 u8 prio_tc[HNAE3_MAX_USER_PRIO]; member
/Linux-v5.4/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()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate()
68 u8 *prio_tc) in mlxsw_sp_port_pg_prio_map() argument
75 mlxsw_reg_pptb_prio_to_buff_pack(pptb_pl, i, prio_tc[i]); in mlxsw_sp_port_pg_prio_map()
81 static bool mlxsw_sp_ets_has_pg(u8 *prio_tc, u8 pg) in mlxsw_sp_ets_has_pg() argument
86 if (prio_tc[i] == pg) in mlxsw_sp_ets_has_pg()
125 ets->prio_tc, pause_en, in mlxsw_sp_port_headroom_set()
132 err = mlxsw_sp_port_pg_prio_map(mlxsw_sp_port, ets->prio_tc); in mlxsw_sp_port_headroom_set()
138 err = mlxsw_sp_port_pg_destroy(mlxsw_sp_port, my_ets->prio_tc, in mlxsw_sp_port_headroom_set()
139 ets->prio_tc); in mlxsw_sp_port_headroom_set()
146 mlxsw_sp_port_pg_destroy(mlxsw_sp_port, ets->prio_tc, my_ets->prio_tc); in mlxsw_sp_port_headroom_set()
[all …]
Dspectrum.c925 u8 *prio_tc, bool pause_en, in __mlxsw_sp_port_headroom_set() argument
952 if (prio_tc[j] == i) { in __mlxsw_sp_port_headroom_set()
985 u8 *prio_tc; in mlxsw_sp_port_headroom_set() local
987 prio_tc = dcb_en ? mlxsw_sp_port->dcb.ets->prio_tc : def_prio_tc; in mlxsw_sp_port_headroom_set()
990 return __mlxsw_sp_port_headroom_set(mlxsw_sp_port, mtu, prio_tc, in mlxsw_sp_port_headroom_set()
Dspectrum.h471 u8 *prio_tc, bool pause_en,
/Linux-v5.4/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()
/Linux-v5.4/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()
Dxgbe-dev.c473 tc = pdata->ets->prio_tc[prio]; in xgbe_is_pfc_queue()
2708 pdata->ets->prio_tc[prio]); in xgbe_config_tc()
2736 if (ets->prio_tc[prio] == i) in xgbe_config_dcb_tc()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c56 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
84 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
247 (my_ets->prio_tc[pri] == i)) { in bnxt_hwrm_queue_pfc_cfg()
447 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate()
449 ets->prio_tc[i]); in bnxt_ets_validate()
452 if (ets->prio_tc[i] > max_tc) in bnxt_ets_validate()
453 max_tc = ets->prio_tc[i]; in bnxt_ets_validate()
506 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
529 my_ets->prio_tc[i] = IEEE_8021QAZ_MAX_TCS; in bnxt_dcbnl_ieee_setets()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c114 err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]); in mlx5e_dcbnl_ieee_getets()
252 err = mlx5_set_port_prio_tc(mdev, ets->prio_tc); in mlx5e_dcbnl_ieee_setets_core()
269 __func__, i, ets->prio_tc[i]); in mlx5e_dcbnl_ieee_setets_core()
287 if (ets->prio_tc[i] >= MLX5E_MAX_PRIORITY) { in mlx5e_dbcnl_validate_ets()
632 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
636 ets.prio_tc[i]); in mlx5e_dcbnl_setall()
1043 ets.prio_tc[i] = i; in mlx5e_ets_init()
1048 ets.prio_tc[0] = 1; in mlx5e_ets_init()
1049 ets.prio_tc[1] = 0; in mlx5e_ets_init()
Dport.c573 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc) in mlx5_set_port_prio_tc() argument
581 if (prio_tc[i] > mlx5_max_tc(mdev)) in mlx5_set_port_prio_tc()
585 MLX5_SET(qtct_reg, in, tclass, prio_tc[i]); in mlx5_set_port_prio_tc()
Den_stats.c1079 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_prio_update_stats()
1110 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_congest_prio_update_stats()
1333 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_prio_update_stats()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/include/linux/mlx5/
Dport.h168 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
/Linux-v5.4/include/uapi/linux/
Ddcbnl.h65 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; member
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c2186 memcpy(ets->prio_tc, params->ets_pri_tc_tbl, sizeof(ets->prio_tc)); in qed_dcbnl_get_ieee_ets()
2230 memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc, in qed_dcbnl_ieee_setets()
2231 sizeof(ets->prio_tc)); in qed_dcbnl_ieee_setets()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h577 u8 prio_tc[HNAE3_MAX_USER_PRIO]; /* TC indexed by prio */ member
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c986 ets->prio_tc[i] = bwg; in cxgb4_ieee_read_ets()

12