Searched refs:dcbcfg (Results 1 – 9 of 9) sorted by relevance
212 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_etscfg_tlv() argument224 etscfg = &dcbcfg->etscfg; in ice_parse_ieee_etscfg_tlv()244 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_etsrec_tlv() argument249 ice_parse_ieee_ets_common_tlv(&buf[1], &dcbcfg->etsrec); in ice_parse_ieee_etsrec_tlv()261 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_pfccfg_tlv() argument271 dcbcfg->pfc.willing = ((buf[0] & ICE_IEEE_PFC_WILLING_M) >> in ice_parse_ieee_pfccfg_tlv()273 dcbcfg->pfc.mbc = ((buf[0] & ICE_IEEE_PFC_MBC_M) >> ICE_IEEE_PFC_MBC_S); in ice_parse_ieee_pfccfg_tlv()274 dcbcfg->pfc.pfccap = ((buf[0] & ICE_IEEE_PFC_CAP_M) >> in ice_parse_ieee_pfccfg_tlv()276 dcbcfg->pfc.pfcena = buf[1]; in ice_parse_ieee_pfccfg_tlv()288 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_app_tlv() argument[all …]
12 static u8 ice_dcb_get_ena_tc(struct ice_dcbx_cfg *dcbcfg) in ice_dcb_get_ena_tc() argument16 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_get_ena_tc()106 u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg *dcbcfg) in ice_dcb_get_num_tc() argument117 num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); in ice_dcb_get_num_tc()312 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg) in ice_dcb_bwchk() argument314 struct ice_dcb_ets_cfg *etscfg = &dcbcfg->etscfg; in ice_dcb_bwchk()321 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_bwchk()462 struct ice_dcbx_cfg *dcbcfg = &pi->qos_cfg.local_dcbx_cfg; in ice_cfg_etsrec_defaults() local466 if (dcbcfg->etsrec.maxtcs) in ice_cfg_etsrec_defaults()470 dcbcfg->etsrec.maxtcs = 1; in ice_cfg_etsrec_defaults()[all …]
19 u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg *dcbcfg);25 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg);75 static inline u8 ice_dcb_get_ena_tc(struct ice_dcbx_cfg __always_unused *dcbcfg) in ice_dcb_get_ena_tc() argument80 static inline u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg __always_unused *dcbcfg) in ice_dcb_get_num_tc() argument
144 struct ice_dcbx_cfg *dcbcfg);
2454 static u8 ice_get_dscp_up(struct ice_dcbx_cfg *dcbcfg, struct sk_buff *skb) in ice_get_dscp_up() argument2463 return dcbcfg->dscp_map[dscp]; in ice_get_dscp_up()2471 struct ice_dcbx_cfg *dcbcfg; in ice_select_queue() local2473 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_select_queue()2474 if (dcbcfg->pfc_mode == ICE_QOS_MODE_DSCP) in ice_select_queue()2475 skb->priority = ice_get_dscp_up(dcbcfg, skb); in ice_select_queue()
3279 struct ice_dcbx_cfg *dcbcfg; in ice_vsi_cfg_netdev_tc() local3301 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_vsi_cfg_netdev_tc()3324 u8 ets_tc = dcbcfg->etscfg.prio_table[i]; in ice_vsi_cfg_netdev_tc()
39 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_etscfg_tlv() argument54 etscfg = &dcbcfg->etscfg; in i40e_parse_ieee_etscfg_tlv()110 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_etsrec_tlv() argument131 dcbcfg->etsrec.prioritytable[i*2] = priority; in i40e_parse_ieee_etsrec_tlv()134 dcbcfg->etsrec.prioritytable[i*2 + 1] = priority; in i40e_parse_ieee_etsrec_tlv()145 dcbcfg->etsrec.tcbwtable[i] = buf[offset++]; in i40e_parse_ieee_etsrec_tlv()154 dcbcfg->etsrec.tsatable[i] = buf[offset++]; in i40e_parse_ieee_etsrec_tlv()165 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_pfccfg_tlv() argument175 dcbcfg->pfc.willing = (u8)((buf[0] & I40E_IEEE_PFC_WILLING_MASK) >> in i40e_parse_ieee_pfccfg_tlv()177 dcbcfg->pfc.mbc = (u8)((buf[0] & I40E_IEEE_PFC_MBC_MASK) >> in i40e_parse_ieee_pfccfg_tlv()[all …]
270 struct i40e_dcbx_config *dcbcfg);273 struct i40e_dcbx_config *dcbcfg);282 struct i40e_dcbx_config *dcbcfg);
5413 struct i40e_dcbx_config *dcbcfg = &hw->local_dcbx_config; in i40e_get_iscsi_tc_map() local5415 for (i = 0; i < dcbcfg->numapps; i++) { in i40e_get_iscsi_tc_map()5416 app = dcbcfg->app[i]; in i40e_get_iscsi_tc_map()5419 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map()5434 static u8 i40e_dcb_get_num_tc(struct i40e_dcbx_config *dcbcfg) in i40e_dcb_get_num_tc() argument5445 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc()5477 static u8 i40e_dcb_get_enabled_tc(struct i40e_dcbx_config *dcbcfg) in i40e_dcb_get_enabled_tc() argument5479 u8 num_tc = i40e_dcb_get_num_tc(dcbcfg); in i40e_dcb_get_enabled_tc()5518 struct i40e_dcbx_config *dcbcfg = &hw->local_dcbx_config; in i40e_pf_get_num_tc() local5529 return i40e_dcb_get_num_tc(dcbcfg); in i40e_pf_get_num_tc()[all …]