Home
last modified time | relevance | path

Searched refs:tc_tx_bw (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c133 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw, in xgbe_dcb_ieee_getets()
134 sizeof(ets->tc_tx_bw)); in xgbe_dcb_ieee_getets()
156 ets->tc_tx_bw[i], ets->tc_rx_bw[i], in xgbe_dcb_ieee_setets()
162 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i])) in xgbe_dcb_ieee_setets()
170 tc_ets_weight += ets->tc_tx_bw[i]; in xgbe_dcb_ieee_setets()
Dxgbe-dev.c2767 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c130 err = mlx5_query_port_tc_bw_alloc(mdev, i, &ets->tc_tx_bw[i]); in mlx5e_dcbnl_ieee_getets()
134 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC && in mlx5e_dcbnl_ieee_getets()
146 ets->tc_tx_bw[i] = 0; in mlx5e_dcbnl_ieee_getets()
151 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC) in mlx5e_dcbnl_ieee_getets()
172 if (!ets->tc_tx_bw[i]) in mlx5e_build_tc_group()
194 if (ets->tc_tx_bw[i] && ets_zero_bw) in mlx5e_build_tc_group()
201 static void mlx5e_build_tc_tx_bw(struct ieee_ets *ets, u8 *tc_tx_bw, in mlx5e_build_tc_tx_bw() argument
211 !ets->tc_tx_bw[i]) { in mlx5e_build_tc_tx_bw()
223 tc_tx_bw[i] = MLX5E_MAX_BW_ALLOC; in mlx5e_build_tc_tx_bw()
226 tc_tx_bw[i] = MLX5E_MAX_BW_ALLOC; in mlx5e_build_tc_tx_bw()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c20 memset(ets->tc_tx_bw, 0, sizeof(ets->tc_tx_bw)); in fm10k_dcbnl_ieee_getets()
43 if (ets->tc_tx_bw[i] || ets->tc_rx_bw[i]) in fm10k_dcbnl_ieee_setets()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c298 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in mlx4_en_dcbnl_ieee_getets()
324 total_ets_bw += ets->tc_tx_bw[i]; in mlx4_en_ets_validate()
348 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS] = { 0 }; in mlx4_en_config_port_scheduler() local
359 tc_tx_bw[i] = MLX4_EN_BW_MAX; in mlx4_en_config_port_scheduler()
363 tc_tx_bw[i] = MLX4_EN_BW_MAX; in mlx4_en_config_port_scheduler()
367 tc_tx_bw[i] = ets->tc_tx_bw[i] ?: MLX4_EN_BW_MIN; in mlx4_en_config_port_scheduler()
372 return mlx4_SET_PORT_SCHEDULER(mdev->dev, priv->port, tc_tx_bw, pg, in mlx4_en_config_port_scheduler()
Dfw_qos.h84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw,
Dfw_qos.c111 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw, in mlx4_SET_PORT_SCHEDULER() argument
147 tc->bw_precentage = htons(tc_tx_bw[i]); in mlx4_SET_PORT_SCHEDULER()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c124 cos2bw.bw_weight = ets->tc_tx_bw[i]; in bnxt_hwrm_queue_cos2bw_cfg()
129 cpu_to_le32((ets->tc_tx_bw[i] * 100) | in bnxt_hwrm_queue_cos2bw_cfg()
178 ets->tc_tx_bw[tc] = cos2bw.bw_weight; in bnxt_hwrm_queue_cos2bw_qcfg()
480 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]) && i > bp->max_tc) in bnxt_ets_validate()
487 total_ets_bw += ets->tc_tx_bw[i]; in bnxt_ets_validate()
488 zero = zero || !ets->tc_tx_bw[i]; in bnxt_ets_validate()
537 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in bnxt_dcbnl_ieee_getets()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c27 ets->tc_tx_bw[i]; in hclge_ieee_ets_to_tm_info()
55 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets()
143 if (!ets->tc_tx_bw[i]) { in hclge_ets_sch_mode_validate()
153 total_ets_bw += ets->tc_tx_bw[i]; in hclge_ets_sch_mode_validate()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c46 tx_bw_sum += ets->tc_tx_bw[i]; in mlxsw_sp_port_ets_validate()
101 u8 weight = ets->tc_tx_bw[i]; in __mlxsw_sp_dcbnl_ieee_setets()
139 u8 weight = my_ets->tc_tx_bw[i]; in __mlxsw_sp_dcbnl_ieee_setets()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c43 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_tx_bw)); in ice_dcbnl_getets()
80 new_cfg->etscfg.tcbwtable[i] = ets->tc_tx_bw[i]; in ice_dcbnl_setets()
81 bwcfg += ets->tc_tx_bw[i]; in ice_dcbnl_setets()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c48 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
49 sizeof(ets->tc_tx_bw)); in i40e_dcbnl_ieee_getets()
126 pf->tmp_cfg.etscfg.tcbwtable[i] = ets->tc_tx_bw[i]; in i40e_dcbnl_ieee_setets()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c498 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in ixgbe_dcbnl_ieee_getets()
Dixgbe_dcb.c331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
/linux-6.1.9/include/uapi/linux/
Ddcbnl.h62 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS]; member
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c2157 memcpy(ets->tc_tx_bw, params->ets_tc_bw_tbl, sizeof(ets->tc_tx_bw)); in qed_dcbnl_get_ieee_ets()
2199 memcpy(dcbx_set.config.params.ets_tc_bw_tbl, ets->tc_tx_bw, in qed_dcbnl_ieee_setets()
2200 sizeof(ets->tc_tx_bw)); in qed_dcbnl_ieee_setets()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c987 ets->tc_tx_bw[i] = pcmd.u.dcb.pgrate.pgrate[i]; in cxgb4_ieee_read_ets()
988 ets->tc_rx_bw[i] = ets->tc_tx_bw[i]; in cxgb4_ieee_read_ets()