/Linux-v6.6/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-dcb.c | 133 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()
|
D | xgbe-dev.c | 2817 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dcbnl.c | 132 err = mlx5_query_port_tc_bw_alloc(mdev, i, &ets->tc_tx_bw[i]); in mlx5e_dcbnl_ieee_getets() 136 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC && in mlx5e_dcbnl_ieee_getets() 148 ets->tc_tx_bw[i] = 0; in mlx5e_dcbnl_ieee_getets() 153 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC) in mlx5e_dcbnl_ieee_getets() 174 if (!ets->tc_tx_bw[i]) in mlx5e_build_tc_group() 196 if (ets->tc_tx_bw[i] && ets_zero_bw) in mlx5e_build_tc_group() 203 static void mlx5e_build_tc_tx_bw(struct ieee_ets *ets, u8 *tc_tx_bw, in mlx5e_build_tc_tx_bw() argument 213 !ets->tc_tx_bw[i]) { in mlx5e_build_tc_tx_bw() 225 tc_tx_bw[i] = MLX5E_MAX_BW_ALLOC; in mlx5e_build_tc_tx_bw() 228 tc_tx_bw[i] = MLX5E_MAX_BW_ALLOC; in mlx5e_build_tc_tx_bw() [all …]
|
/Linux-v6.6/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_dcbnl.c | 20 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-v6.6/drivers/net/ethernet/mellanox/mlx4/ |
D | en_dcb_nl.c | 298 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()
|
D | fw_qos.h | 84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw,
|
D | fw_qos.c | 111 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-v6.6/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dcb.c | 123 cos2bw.bw_weight = ets->tc_tx_bw[i]; in bnxt_hwrm_queue_cos2bw_cfg() 128 cpu_to_le32((ets->tc_tx_bw[i] * 100) | in bnxt_hwrm_queue_cos2bw_cfg() 186 ets->tc_tx_bw[tc] = cos2bw.bw_weight; in bnxt_hwrm_queue_cos2bw_qcfg() 488 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]) && i > bp->max_tc) in bnxt_ets_validate() 495 total_ets_bw += ets->tc_tx_bw[i]; in bnxt_ets_validate() 496 zero = zero || !ets->tc_tx_bw[i]; in bnxt_ets_validate() 545 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in bnxt_dcbnl_ieee_getets()
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_dcb.c | 27 ets->tc_tx_bw[i]; in hclge_ieee_ets_to_tm_info() 56 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets() 58 ets->tc_tx_bw[i] = 0; in hclge_tm_info_to_ieee_ets() 154 if (!ets->tc_tx_bw[i]) { in hclge_ets_sch_mode_validate() 164 total_ets_bw += ets->tc_tx_bw[i]; in hclge_ets_sch_mode_validate()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nic/ |
D | dcb.c | 79 ets->tc_tx_bw[i] = dcb->tc_tx_pct[i]; in nfp_nic_dcbnl_ieee_getets() 220 sum += ets->tc_tx_bw[i]; in dcb_ets_check() 221 } else if (ets->tc_tx_bw[i]) { in dcb_ets_check() 282 dcb->tc_tx_pct[i] = ets->tc_tx_bw[i]; in nfp_nic_dcbnl_ieee_setets()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_dcb.c | 46 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-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_nl.c | 43 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_tx_bw)); in ice_dcbnl_getets() 85 new_cfg->etscfg.tcbwtable[i] = ets->tc_tx_bw[i]; in ice_dcbnl_setets() 86 bwcfg += ets->tc_tx_bw[i]; in ice_dcbnl_setets()
|
/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb_nl.c | 498 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in ixgbe_dcbnl_ieee_getets()
|
D | ixgbe_dcb.c | 331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
|
/Linux-v6.6/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb_nl.c | 48 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-v6.6/include/uapi/linux/ |
D | dcbnl.h | 62 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS]; member
|
/Linux-v6.6/drivers/net/ethernet/qlogic/qed/ |
D | qed_dcbx.c | 2157 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-v6.6/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 987 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()
|