Lines Matching full:pfc
221 * ice_get_pfc_delay - Retrieve PFC Link Delay
223 * @delay: holds the PFC Link Delay value
234 * ice_dcbnl_getpfc - retrieve local IEEE PFC config
236 * @pfc: struct to hold PFC info
238 static int ice_dcbnl_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_getpfc() argument
246 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in ice_dcbnl_getpfc()
247 pfc->pfc_en = dcbxcfg->pfc.pfcena; in ice_dcbnl_getpfc()
248 pfc->mbc = dcbxcfg->pfc.mbc; in ice_dcbnl_getpfc()
249 ice_get_pfc_delay(&pf->hw, &pfc->delay); in ice_dcbnl_getpfc()
252 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in ice_dcbnl_getpfc()
253 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in ice_dcbnl_getpfc()
260 * ice_dcbnl_setpfc - set local IEEE PFC config
262 * @pfc: pointer to struct holding PFC config
264 static int ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_setpfc() argument
283 if (pfc->pfc_cap) in ice_dcbnl_setpfc()
284 new_cfg->pfc.pfccap = pfc->pfc_cap; in ice_dcbnl_setpfc()
286 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setpfc()
288 new_cfg->pfc.pfcena = pfc->pfc_en; in ice_dcbnl_setpfc()
300 * ice_dcbnl_get_pfc_cfg - Get CEE PFC config
303 * @setting: the PFC setting for given priority
318 *setting = (pi->qos_cfg.local_dcbx_cfg.pfc.pfcena >> prio) & 0x1; in ice_dcbnl_get_pfc_cfg()
319 dev_dbg(ice_pf_to_dev(pf), "Get PFC Config up=%d, setting=%d, pfcenable=0x%x\n", in ice_dcbnl_get_pfc_cfg()
320 prio, *setting, pi->qos_cfg.local_dcbx_cfg.pfc.pfcena); in ice_dcbnl_get_pfc_cfg()
324 * ice_dcbnl_set_pfc_cfg - Set CEE PFC config
327 * @set: PFC setting to apply
348 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_set_pfc_cfg()
350 new_cfg->pfc.pfcena |= BIT(prio); in ice_dcbnl_set_pfc_cfg()
352 new_cfg->pfc.pfcena &= ~BIT(prio); in ice_dcbnl_set_pfc_cfg()
354 dev_dbg(ice_pf_to_dev(pf), "Set PFC config UP:%d set:%d pfcena:0x%x\n", in ice_dcbnl_set_pfc_cfg()
355 prio, set, new_cfg->pfc.pfcena); in ice_dcbnl_set_pfc_cfg()
359 * ice_dcbnl_getpfcstate - get CEE PFC mode
367 /* Return enabled if any UP enabled for PFC */ in ice_dcbnl_getpfcstate()
368 if (pi->qos_cfg.local_dcbx_cfg.pfc.pfcena) in ice_dcbnl_getpfcstate()
807 netdev_err(netdev, "Failed to set DSCP PFC mode %d\n", in ice_dcbnl_setapp()
817 new_cfg->pfc.pfccap = max_tc; in ice_dcbnl_setapp()
818 new_cfg->pfc.willing = 0; in ice_dcbnl_setapp()
940 netdev_info(netdev, "Failed to set VLAN PFC mode %d\n", in ice_dcbnl_delapp()