Lines Matching full:pfc

248  * @tlv: IEEE 802.1Qaz PFC CFG TLV
249 * @dcbcfg: Local store to update PFC CFG data
251 * Parses IEEE 802.1Qaz PFC CFG TLV
260 * |will-|MBC | Re- | PFC | PFC Enable | in ice_parse_ieee_pfccfg_tlv()
265 dcbcfg->pfc.willing = FIELD_GET(ICE_IEEE_PFC_WILLING_M, buf[0]); in ice_parse_ieee_pfccfg_tlv()
266 dcbcfg->pfc.mbc = FIELD_GET(ICE_IEEE_PFC_MBC_M, buf[0]); in ice_parse_ieee_pfccfg_tlv()
267 dcbcfg->pfc.pfccap = FIELD_GET(ICE_IEEE_PFC_CAP_M, buf[0]); in ice_parse_ieee_pfccfg_tlv()
268 dcbcfg->pfc.pfcena = buf[1]; in ice_parse_ieee_pfccfg_tlv()
418 * @tlv: CEE DCBX PFC CFG TLV
419 * @dcbcfg: Local store to update PFC CFG data
421 * Parses CEE DCBX PFC CFG TLV
430 dcbcfg->pfc.willing = 1; in ice_parse_cee_pfccfg_tlv()
433 * | PFC Enable | PFC TCs | in ice_parse_cee_pfccfg_tlv()
437 dcbcfg->pfc.pfcena = buf[0]; in ice_parse_cee_pfccfg_tlv()
438 dcbcfg->pfc.pfccap = buf[1]; in ice_parse_cee_pfccfg_tlv()
725 * ice_aq_set_pfc_mode - Set PFC mode
727 * @pfc_mode: value of PFC mode to set
730 * This AQ call configures the PFC mode to DSCP-based PFC mode or
731 * VLAN-based PFC (0x0303)
752 /* FW will write the PFC mode set back into cmd->pfc_mode, but if DCB is in ice_aq_set_pfc_mode()
813 /* CEE PFC data */ in ice_cee_to_dcb_cfg()
814 dcbcfg->pfc.pfcena = cee_cfg->oper_pfc_en; in ice_cee_to_dcb_cfg()
815 dcbcfg->pfc.pfccap = ICE_MAX_TRAFFIC_CLASS; in ice_cee_to_dcb_cfg()
1181 * ice_add_ieee_pfc_tlv - Prepare PFC TLV in IEEE format
1182 * @tlv: Fill PFC TLV in IEEE format
1183 * @dcbcfg: Local store which holds the PFC CFG data
1185 * Prepare IEEE 802.1Qaz PFC CFG TLV
1203 * |will-|MBC | Re- | PFC | PFC Enable | in ice_add_ieee_pfc_tlv()
1208 if (dcbcfg->pfc.willing) in ice_add_ieee_pfc_tlv()
1211 if (dcbcfg->pfc.mbc) in ice_add_ieee_pfc_tlv()
1214 buf[0] |= dcbcfg->pfc.pfccap & 0xF; in ice_add_ieee_pfc_tlv()
1215 buf[1] = dcbcfg->pfc.pfcena; in ice_add_ieee_pfc_tlv()
1379 * ice_add_dscp_pfc_tlv - Prepare DSCP PFC TLV
1380 * @tlv: Fill PFC TLV in IEEE format
1381 * @dcbcfg: Local store which holds the PFC CFG data
1398 buf[0] = dcbcfg->pfc.pfccap & 0xF; in ice_add_dscp_pfc_tlv()
1399 buf[1] = dcbcfg->pfc.pfcena; in ice_add_dscp_pfc_tlv()