Lines Matching refs:tmp_cfg

118 	pf->tmp_cfg = *old_cfg;  in i40e_dcbnl_ieee_setets()
121 pf->tmp_cfg.etscfg.willing = ets->willing; in i40e_dcbnl_ieee_setets()
122 pf->tmp_cfg.etscfg.maxtcs = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_setets()
123 pf->tmp_cfg.etscfg.cbs = ets->cbs; in i40e_dcbnl_ieee_setets()
125 pf->tmp_cfg.etscfg.tcbwtable[i] = ets->tc_tx_bw[i]; in i40e_dcbnl_ieee_setets()
126 pf->tmp_cfg.etscfg.tsatable[i] = ets->tc_tsa[i]; in i40e_dcbnl_ieee_setets()
127 pf->tmp_cfg.etscfg.prioritytable[i] = ets->prio_tc[i]; in i40e_dcbnl_ieee_setets()
128 pf->tmp_cfg.etsrec.tcbwtable[i] = ets->tc_reco_bw[i]; in i40e_dcbnl_ieee_setets()
129 pf->tmp_cfg.etsrec.tsatable[i] = ets->tc_reco_tsa[i]; in i40e_dcbnl_ieee_setets()
130 pf->tmp_cfg.etsrec.prioritytable[i] = ets->reco_prio_tc[i]; in i40e_dcbnl_ieee_setets()
134 ret = i40e_hw_dcb_config(pf, &pf->tmp_cfg); in i40e_dcbnl_ieee_setets()
166 pf->tmp_cfg = *old_cfg; in i40e_dcbnl_ieee_setpfc()
168 pf->tmp_cfg.pfc.pfccap = pfc->pfc_cap; in i40e_dcbnl_ieee_setpfc()
170 pf->tmp_cfg.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_setpfc()
171 pf->tmp_cfg.pfc.pfcenable = pfc->pfc_en; in i40e_dcbnl_ieee_setpfc()
173 ret = i40e_hw_dcb_config(pf, &pf->tmp_cfg); in i40e_dcbnl_ieee_setpfc()
220 pf->tmp_cfg = *old_cfg; in i40e_dcbnl_ieee_setapp()
222 pf->tmp_cfg.app[pf->tmp_cfg.numapps++] = new_app; in i40e_dcbnl_ieee_setapp()
224 ret = i40e_hw_dcb_config(pf, &pf->tmp_cfg); in i40e_dcbnl_ieee_setapp()
265 pf->tmp_cfg = *old_cfg; in i40e_dcbnl_ieee_delapp()
268 for (i = 1; i < pf->tmp_cfg.numapps; i++) { in i40e_dcbnl_ieee_delapp()
269 if (app->selector == pf->tmp_cfg.app[i].selector && in i40e_dcbnl_ieee_delapp()
270 app->protocol == pf->tmp_cfg.app[i].protocolid && in i40e_dcbnl_ieee_delapp()
271 app->priority == pf->tmp_cfg.app[i].priority) { in i40e_dcbnl_ieee_delapp()
273 pf->tmp_cfg.app[i].selector = 0; in i40e_dcbnl_ieee_delapp()
274 pf->tmp_cfg.app[i].protocolid = 0; in i40e_dcbnl_ieee_delapp()
275 pf->tmp_cfg.app[i].priority = 0; in i40e_dcbnl_ieee_delapp()
281 if (i == pf->tmp_cfg.numapps) in i40e_dcbnl_ieee_delapp()
284 pf->tmp_cfg.numapps--; in i40e_dcbnl_ieee_delapp()
286 for (j = i; j < pf->tmp_cfg.numapps; j++) in i40e_dcbnl_ieee_delapp()
287 pf->tmp_cfg.app[j] = old_cfg->app[j + 1]; in i40e_dcbnl_ieee_delapp()
289 ret = i40e_hw_dcb_config(pf, &pf->tmp_cfg); in i40e_dcbnl_ieee_delapp()
385 pf->tmp_cfg.etscfg.prioritytable[i] = tc; in i40e_dcbnl_set_pg_tc_cfg_tx()
387 pf->tmp_cfg.etscfg.tsatable[tc] = I40E_IEEE_TSA_ETS; in i40e_dcbnl_set_pg_tc_cfg_tx()
414 pf->tmp_cfg.etscfg.tcbwtable[pgid] = bw_pct; in i40e_dcbnl_set_pg_bwg_cfg_tx()
586 pf->tmp_cfg.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_set_pfc_cfg()
588 pf->tmp_cfg.pfc.pfcenable |= BIT(prio); in i40e_dcbnl_set_pfc_cfg()
590 pf->tmp_cfg.pfc.pfcenable &= ~BIT(prio); in i40e_dcbnl_set_pfc_cfg()
593 prio, setting, pf->tmp_cfg.pfc.pfcenable); in i40e_dcbnl_set_pfc_cfg()
638 err = i40e_hw_dcb_config(pf, &pf->tmp_cfg); in i40e_dcbnl_cee_set_all()