Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c624 struct mlx5e_cee_config *cee_cfg = &priv->dcbx.cee_cfg; in mlx5e_dcbnl_setall() local
639 ets.tc_tx_bw[i] = cee_cfg->pg_bw_pct[i]; in mlx5e_dcbnl_setall()
640 ets.tc_rx_bw[i] = cee_cfg->pg_bw_pct[i]; in mlx5e_dcbnl_setall()
642 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
662 if (!cee_cfg->pfc_enable) in mlx5e_dcbnl_setall()
666 pfc.pfc_en |= cee_cfg->pfc_setting[i] << i; in mlx5e_dcbnl_setall()
701 struct mlx5e_cee_config *cee_cfg = &priv->dcbx.cee_cfg; in mlx5e_dcbnl_setpgtccfgtx() local
715 cee_cfg->prio_to_pg_map[priority] = pgid; in mlx5e_dcbnl_setpgtccfgtx()
722 struct mlx5e_cee_config *cee_cfg = &priv->dcbx.cee_cfg; in mlx5e_dcbnl_setpgbwgcfgtx() local
730 cee_cfg->pg_bw_pct[pgid] = bw_pct; in mlx5e_dcbnl_setpgbwgcfgtx()
[all …]
/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 …]
/drivers/net/ethernet/intel/ice/
Dice_dcb.c746 ice_cee_to_dcb_cfg(struct ice_aqc_get_cee_dcb_cfg_resp *cee_cfg, in ice_cee_to_dcb_cfg() argument
749 u32 status, tlv_status = le32_to_cpu(cee_cfg->tlv_status); in ice_cee_to_dcb_cfg()
752 u16 app_prio = le16_to_cpu(cee_cfg->oper_app_prio); in ice_cee_to_dcb_cfg()
762 dcbcfg->etscfg.maxtcs = cee_cfg->oper_num_tc; in ice_cee_to_dcb_cfg()
769 ((cee_cfg->oper_prio_tc[i] & ICE_CEE_PGID_PRIO_0_M) >> in ice_cee_to_dcb_cfg()
772 ((cee_cfg->oper_prio_tc[i] & ICE_CEE_PGID_PRIO_1_M) >> in ice_cee_to_dcb_cfg()
777 dcbcfg->etscfg.tcbwtable[i] = cee_cfg->oper_tc_bw[i]; in ice_cee_to_dcb_cfg()
781 dcbcfg->etscfg.prio_table[i] = cee_cfg->oper_num_tc - 1; in ice_cee_to_dcb_cfg()
789 dcbcfg->pfc.pfcena = cee_cfg->oper_pfc_en; in ice_cee_to_dcb_cfg()
908 struct ice_aqc_get_cee_dcb_cfg_resp cee_cfg; in ice_get_dcb_cfg() local
[all …]
/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()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddcbnl.h21 struct mlx5e_cee_config cee_cfg; /* pending configuration */ member