Lines Matching full:pfc
7 struct ieee_pfc *pfc) in dpaa2_eth_dcbnl_ieee_getpfc() argument
14 memcpy(pfc, &priv->pfc, sizeof(priv->pfc)); in dpaa2_eth_dcbnl_ieee_getpfc()
15 pfc->pfc_cap = dpaa2_eth_tc_count(priv); in dpaa2_eth_dcbnl_ieee_getpfc()
42 * disables generation of PFC frames for them in dpaa2_eth_set_pfc_cn()
62 struct ieee_pfc *pfc) in dpaa2_eth_dcbnl_ieee_setpfc() argument
69 if (pfc->mbc || pfc->delay) in dpaa2_eth_dcbnl_ieee_setpfc()
72 /* If same PFC enabled mask, nothing to do */ in dpaa2_eth_dcbnl_ieee_setpfc()
73 if (priv->pfc.pfc_en == pfc->pfc_en) in dpaa2_eth_dcbnl_ieee_setpfc()
76 /* We allow PFC configuration even if it won't have any effect until in dpaa2_eth_dcbnl_ieee_setpfc()
81 netdev_warn(net_dev, "Pause support must be enabled in order for PFC to work!\n"); in dpaa2_eth_dcbnl_ieee_setpfc()
85 if (pfc->pfc_en) in dpaa2_eth_dcbnl_ieee_setpfc()
96 err = dpaa2_eth_set_pfc_cn(priv, pfc->pfc_en); in dpaa2_eth_dcbnl_ieee_setpfc()
100 memcpy(&priv->pfc, pfc, sizeof(priv->pfc)); in dpaa2_eth_dcbnl_ieee_setpfc()
101 priv->pfc_enabled = !!pfc->pfc_en; in dpaa2_eth_dcbnl_ieee_setpfc()