Lines Matching full:pfc

211  * ice_get_pfc_delay - Retrieve PFC Link Delay
213 * @delay: holds the PFC Link Delay value
224 * ice_dcbnl_getpfc - retrieve local IEEE PFC config
226 * @pfc: struct to hold PFC info
228 static int ice_dcbnl_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_getpfc() argument
236 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in ice_dcbnl_getpfc()
237 pfc->pfc_en = dcbxcfg->pfc.pfcena; in ice_dcbnl_getpfc()
238 pfc->mbc = dcbxcfg->pfc.mbc; in ice_dcbnl_getpfc()
239 ice_get_pfc_delay(&pf->hw, &pfc->delay); in ice_dcbnl_getpfc()
242 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in ice_dcbnl_getpfc()
243 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in ice_dcbnl_getpfc()
250 * ice_dcbnl_setpfc - set local IEEE PFC config
252 * @pfc: pointer to struct holding PFC config
254 static int ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_setpfc() argument
268 if (pfc->pfc_cap) in ice_dcbnl_setpfc()
269 new_cfg->pfc.pfccap = pfc->pfc_cap; in ice_dcbnl_setpfc()
271 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setpfc()
273 new_cfg->pfc.pfcena = pfc->pfc_en; in ice_dcbnl_setpfc()
285 * ice_dcbnl_get_pfc_cfg - Get CEE PFC config
288 * @setting: the PFC setting for given priority
303 *setting = (pi->qos_cfg.local_dcbx_cfg.pfc.pfcena >> prio) & 0x1; in ice_dcbnl_get_pfc_cfg()
304 dev_dbg(ice_pf_to_dev(pf), "Get PFC Config up=%d, setting=%d, pfcenable=0x%x\n", in ice_dcbnl_get_pfc_cfg()
305 prio, *setting, pi->qos_cfg.local_dcbx_cfg.pfc.pfcena); in ice_dcbnl_get_pfc_cfg()
309 * ice_dcbnl_set_pfc_cfg - Set CEE PFC config
312 * @set: PFC setting to apply
328 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_set_pfc_cfg()
330 new_cfg->pfc.pfcena |= BIT(prio); in ice_dcbnl_set_pfc_cfg()
332 new_cfg->pfc.pfcena &= ~BIT(prio); in ice_dcbnl_set_pfc_cfg()
334 dev_dbg(ice_pf_to_dev(pf), "Set PFC config UP:%d set:%d pfcena:0x%x\n", in ice_dcbnl_set_pfc_cfg()
335 prio, set, new_cfg->pfc.pfcena); in ice_dcbnl_set_pfc_cfg()
339 * ice_dcbnl_getpfcstate - get CEE PFC mode
347 /* Return enabled if any UP enabled for PFC */ in ice_dcbnl_getpfcstate()
348 if (pi->qos_cfg.local_dcbx_cfg.pfc.pfcena) in ice_dcbnl_getpfcstate()
767 netdev_err(netdev, "Failed to set DSCP PFC mode %d\n", in ice_dcbnl_setapp()
777 new_cfg->pfc.pfccap = max_tc; in ice_dcbnl_setapp()
778 new_cfg->pfc.willing = 0; in ice_dcbnl_setapp()
895 netdev_info(netdev, "Failed to set VLAN PFC mode %d\n", in ice_dcbnl_delapp()