Home
last modified time | relevance | path

Searched refs:cee_cfg (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c590 struct i40e_aqc_get_cee_dcb_cfg_v1_resp *cee_cfg, in i40e_cee_to_dcb_v1_config() argument
593 u16 status, tlv_status = le16_to_cpu(cee_cfg->tlv_status); in i40e_cee_to_dcb_v1_config()
594 u16 app_prio = le16_to_cpu(cee_cfg->oper_app_prio); in i40e_cee_to_dcb_v1_config()
598 dcbcfg->etscfg.maxtcs = cee_cfg->oper_num_tc; in i40e_cee_to_dcb_v1_config()
604 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
608 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
615 dcbcfg->etscfg.tcbwtable[i] = cee_cfg->oper_tc_bw[i]; in i40e_cee_to_dcb_v1_config()
621 cee_cfg->oper_num_tc - 1; in i40e_cee_to_dcb_v1_config()
629 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_v1_config()
671 struct i40e_aqc_get_cee_dcb_cfg_resp *cee_cfg, in i40e_cee_to_dcb_config() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c614 struct mlx5e_cee_config *cee_cfg = &priv->dcbx.cee_cfg; in mlx5e_dcbnl_setall() local
629 ets.tc_tx_bw[i] = cee_cfg->pg_bw_pct[i]; in mlx5e_dcbnl_setall()
630 ets.tc_rx_bw[i] = cee_cfg->pg_bw_pct[i]; in mlx5e_dcbnl_setall()
632 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
652 if (!cee_cfg->pfc_enable) in mlx5e_dcbnl_setall()
656 pfc.pfc_en |= cee_cfg->pfc_setting[i] << i; in mlx5e_dcbnl_setall()
691 struct mlx5e_cee_config *cee_cfg = &priv->dcbx.cee_cfg; in mlx5e_dcbnl_setpgtccfgtx() local
705 cee_cfg->prio_to_pg_map[priority] = pgid; in mlx5e_dcbnl_setpgtccfgtx()
712 struct mlx5e_cee_config *cee_cfg = &priv->dcbx.cee_cfg; in mlx5e_dcbnl_setpgbwgcfgtx() local
720 cee_cfg->pg_bw_pct[pgid] = bw_pct; in mlx5e_dcbnl_setpgbwgcfgtx()
[all …]
Den.h291 struct mlx5e_cee_config cee_cfg; /* pending configuration */ member
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_dcb.c779 ice_cee_to_dcb_cfg(struct ice_aqc_get_cee_dcb_cfg_resp *cee_cfg, in ice_cee_to_dcb_cfg() argument
782 u32 status, tlv_status = le32_to_cpu(cee_cfg->tlv_status); in ice_cee_to_dcb_cfg()
784 u16 app_prio = le16_to_cpu(cee_cfg->oper_app_prio); in ice_cee_to_dcb_cfg()
790 dcbcfg->etscfg.maxtcs = cee_cfg->oper_num_tc; in ice_cee_to_dcb_cfg()
797 ((cee_cfg->oper_prio_tc[i] & ICE_CEE_PGID_PRIO_0_M) >> in ice_cee_to_dcb_cfg()
800 ((cee_cfg->oper_prio_tc[i] & ICE_CEE_PGID_PRIO_1_M) >> in ice_cee_to_dcb_cfg()
805 dcbcfg->etscfg.tcbwtable[i] = cee_cfg->oper_tc_bw[i]; in ice_cee_to_dcb_cfg()
809 dcbcfg->etscfg.prio_table[i] = cee_cfg->oper_num_tc - 1; in ice_cee_to_dcb_cfg()
817 dcbcfg->pfc.pfcena = cee_cfg->oper_pfc_en; in ice_cee_to_dcb_cfg()
918 struct ice_aqc_get_cee_dcb_cfg_resp cee_cfg; in ice_get_dcb_cfg() local
[all …]
/Linux-v5.4/drivers/net/ethernet/brocade/bna/
Dbfa_cee.c22 struct bfa_cee_attr *cee_cfg = buffer; in bfa_cee_format_cee_cfg() local
23 bfa_cee_format_lldp_cfg(&cee_cfg->lldp_remote); in bfa_cee_format_cee_cfg()