Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/amd/xgbe/
A 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()
A Dxgbe-dev.c2760 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_dcbnl.c146 ets->tc_tx_bw[i] = 0; in mlx5e_dcbnl_ieee_getets()
172 if (!ets->tc_tx_bw[i]) in mlx5e_build_tc_group()
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()
229 tc_tx_bw[i] = ets->tc_tx_bw[i] ? in mlx5e_build_tc_tx_bw()
230 ets->tc_tx_bw[i] : in mlx5e_build_tc_tx_bw()
238 tc_tx_bw[last_ets_zero_bw_tc] += in mlx5e_build_tc_tx_bw()
252 u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS]; in mlx5e_dcbnl_ieee_setets_core() local
307 bw_sum += ets->tc_tx_bw[i]; in mlx5e_dbcnl_validate_ets()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
A 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()
A Dfw_qos.h84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw,
A 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/drivers/net/ethernet/intel/fm10k/
A 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/drivers/net/ethernet/broadcom/bnxt/
A 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/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A 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/drivers/net/ethernet/mellanox/mlxsw/
A 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/drivers/net/ethernet/intel/ice/
A 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/drivers/net/ethernet/intel/i40e/
A 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/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_dcb_nl.c500 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in ixgbe_dcbnl_ieee_getets()
A Dixgbe_dcb.c331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
/linux/include/uapi/linux/
A Ddcbnl.h62 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS]; member
/linux/drivers/net/ethernet/qlogic/qed/
A 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/drivers/net/ethernet/chelsio/cxgb4/
A 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()

Completed in 38 milliseconds