| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_dcbnl.c | 133 err = mlx5_query_port_tc_bw_alloc(mdev, i, &ets->tc_tx_bw[i]); in mlx5e_dcbnl_ieee_getets() 137 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC && in mlx5e_dcbnl_ieee_getets() 149 ets->tc_tx_bw[i] = 0; in mlx5e_dcbnl_ieee_getets() 154 if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC) in mlx5e_dcbnl_ieee_getets() 175 if (!ets->tc_tx_bw[i]) in mlx5e_build_tc_group() 197 if (ets->tc_tx_bw[i] && ets_zero_bw) in mlx5e_build_tc_group() 204 static void mlx5e_build_tc_tx_bw(struct ieee_ets *ets, u8 *tc_tx_bw, in mlx5e_build_tc_tx_bw() argument 214 !ets->tc_tx_bw[i]) { 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] = MLX5E_MAX_BW_ALLOC; in mlx5e_build_tc_tx_bw() [all …]
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A 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/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_dcb_nl.c | 295 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in mlx4_en_dcbnl_ieee_getets() 321 total_ets_bw += ets->tc_tx_bw[i]; in mlx4_en_ets_validate() 345 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS] = { 0 }; in mlx4_en_config_port_scheduler() local 356 tc_tx_bw[i] = MLX4_EN_BW_MAX; in mlx4_en_config_port_scheduler() 360 tc_tx_bw[i] = MLX4_EN_BW_MAX; in mlx4_en_config_port_scheduler() 364 tc_tx_bw[i] = ets->tc_tx_bw[i] ?: MLX4_EN_BW_MIN; in mlx4_en_config_port_scheduler() 369 return mlx4_SET_PORT_SCHEDULER(mdev->dev, priv->port, tc_tx_bw, pg, in mlx4_en_config_port_scheduler()
|
| H A D | fw_qos.h | 84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw,
|
| H A 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/drivers/net/ethernet/broadcom/bnxt/ |
| H A 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() 497 total_ets_bw += ets->tc_tx_bw[i]; in bnxt_ets_validate() 498 zero = zero || !ets->tc_tx_bw[i]; in bnxt_ets_validate() 547 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/ |
| H A 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/drivers/net/ethernet/netronome/nfp/nic/ |
| H A 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/drivers/net/ethernet/mellanox/mlxsw/ |
| H A 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/drivers/net/ethernet/intel/ice/ |
| H A 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/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_dcb_nl.c | 47 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets() 48 sizeof(ets->tc_tx_bw)); in i40e_dcbnl_ieee_getets() 125 pf->tmp_cfg.etscfg.tcbwtable[i] = ets->tc_tx_bw[i]; in i40e_dcbnl_ieee_setets()
|
| /linux/include/uapi/linux/ |
| H A D | dcbnl.h | 62 __u8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS]; member
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_dcb.c | 331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A 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/drivers/net/ethernet/chelsio/cxgb4/ |
| H A 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()
|