Home
last modified time | relevance | path

Searched refs:etscfg (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb_lib.c117 num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); in ice_dcb_get_num_tc()
314 struct ice_dcb_ets_cfg *etscfg = &dcbcfg->etscfg; in ice_dcb_bwchk() local
327 etscfg->tcbwtable[0] = ICE_TC_MAX_BW; in ice_dcb_bwchk()
332 total_bw += etscfg->tcbwtable[i]; in ice_dcb_bwchk()
335 etscfg->tcbwtable[0] = ICE_TC_MAX_BW; in ice_dcb_bwchk()
422 memcpy(&curr_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg()
423 memcpy(&new_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg()
492 if (memcmp(&new_cfg->etscfg, &old_cfg->etscfg, in ice_dcb_need_recfg()
493 sizeof(new_cfg->etscfg))) { in ice_dcb_need_recfg()
495 if (memcmp(&new_cfg->etscfg.prio_table, in ice_dcb_need_recfg()
[all …]
H A Dice_dcb.c210 struct ice_dcb_ets_cfg *etscfg; in ice_parse_ieee_etscfg_tlv() local
220 etscfg = &dcbcfg->etscfg; in ice_parse_ieee_etscfg_tlv()
221 etscfg->willing = FIELD_GET(ICE_IEEE_ETS_WILLING_M, buf[0]); in ice_parse_ieee_etscfg_tlv()
222 etscfg->cbs = FIELD_GET(ICE_IEEE_ETS_CBS_M, buf[0]); in ice_parse_ieee_etscfg_tlv()
223 etscfg->maxtcs = FIELD_GET(ICE_IEEE_ETS_MAXTC_M, buf[0]); in ice_parse_ieee_etscfg_tlv()
226 ice_parse_ieee_ets_common_tlv(&buf[1], etscfg); in ice_parse_ieee_etscfg_tlv()
370 struct ice_dcb_ets_cfg *etscfg; in ice_parse_cee_pgcfg_tlv() local
375 etscfg = &dcbcfg->etscfg; in ice_parse_cee_pgcfg_tlv()
378 etscfg->willing = 1; in ice_parse_cee_pgcfg_tlv()
380 etscfg->cbs = 0; in ice_parse_cee_pgcfg_tlv()
[all …]
H A Dice_dcb_nl.c40 ets->willing = dcbxcfg->etscfg.willing; in ice_dcbnl_getets()
41 ets->ets_cap = dcbxcfg->etscfg.maxtcs; in ice_dcbnl_getets()
42 ets->cbs = dcbxcfg->etscfg.cbs; in ice_dcbnl_getets()
43 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_tx_bw)); in ice_dcbnl_getets()
44 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_rx_bw)); in ice_dcbnl_getets()
45 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, sizeof(ets->tc_tsa)); in ice_dcbnl_getets()
46 memcpy(ets->prio_tc, dcbxcfg->etscfg.prio_table, sizeof(ets->prio_tc)); in ice_dcbnl_getets()
51 memcpy(ets->reco_prio_tc, dcbxcfg->etscfg.prio_table, in ice_dcbnl_getets()
82 new_cfg->etscfg.willing = ets->willing; in ice_dcbnl_setets()
83 new_cfg->etscfg.cbs = ets->cbs; in ice_dcbnl_setets()
[all …]
H A Dice_idc.c222 qos->tc_info[i].rel_bw = dcbx_cfg->etscfg.tcbwtable[i]; in ice_get_qos_params()
H A Dice_type.h710 struct ice_dcb_ets_cfg etscfg; member
H A Dice_virtchnl.c1099 tc = pi->qos_cfg.local_dcbx_cfg.etscfg.prio_table[i]; in ice_vc_get_qos_caps()
1107 cfg->arbiter = pi->qos_cfg.local_dcbx_cfg.etscfg.tsatable[i]; in ice_vc_get_qos_caps()
H A Dice_lib.c3176 u8 ets_tc = dcbcfg->etscfg.prio_table[i]; in ice_vsi_cfg_netdev_tc()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.c40 struct i40e_dcb_ets_config *etscfg; in i40e_parse_ieee_etscfg_tlv() local
53 etscfg = &dcbcfg->etscfg; in i40e_parse_ieee_etscfg_tlv()
54 etscfg->willing = FIELD_GET(I40E_IEEE_ETS_WILLING_MASK, buf[offset]); in i40e_parse_ieee_etscfg_tlv()
55 etscfg->cbs = FIELD_GET(I40E_IEEE_ETS_CBS_MASK, buf[offset]); in i40e_parse_ieee_etscfg_tlv()
56 etscfg->maxtcs = FIELD_GET(I40E_IEEE_ETS_MAXTC_MASK, buf[offset]); in i40e_parse_ieee_etscfg_tlv()
71 etscfg->prioritytable[i * 2] = priority; in i40e_parse_ieee_etscfg_tlv()
73 etscfg->prioritytable[i * 2 + 1] = priority; in i40e_parse_ieee_etscfg_tlv()
84 etscfg->tcbwtable[i] = buf[offset++]; in i40e_parse_ieee_etscfg_tlv()
93 etscfg->tsatable[i] = buf[offset++]; in i40e_parse_ieee_etscfg_tlv()
268 struct i40e_dcb_ets_config *etscfg; in i40e_parse_cee_pgcfg_tlv() local
[all …]
H A Di40e_dcb_nl.c44 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets()
46 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets()
47 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
49 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
51 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, in i40e_dcbnl_ieee_getets()
53 memcpy(ets->prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets()
59 memcpy(ets->reco_prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets()
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()
[all …]
H A Di40e_debugfs.c1071 cfg->etscfg.willing, cfg->etscfg.cbs, in i40e_dbg_command_write()
1072 cfg->etscfg.maxtcs); in i40e_dbg_command_write()
1075 i, cfg->etscfg.prioritytable[i], in i40e_dbg_command_write()
1076 cfg->etscfg.tcbwtable[i], in i40e_dbg_command_write()
1077 cfg->etscfg.tsatable[i]); in i40e_dbg_command_write()
1100 r_cfg->etscfg.willing, in i40e_dbg_command_write()
1101 r_cfg->etscfg.cbs, r_cfg->etscfg.maxtcs); in i40e_dbg_command_write()
1104 i, r_cfg->etscfg.prioritytable[i], in i40e_dbg_command_write()
1105 r_cfg->etscfg.tcbwtable[i], in i40e_dbg_command_write()
1106 r_cfg->etscfg.tsatable[i]); in i40e_dbg_command_write()
H A Di40e_main.c5405 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map()
5431 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc()
5714 u8 ets_tc = dcbcfg->etscfg.prioritytable[i]; in i40e_vsi_config_netdev_tc()
6941 old_cfg->etsrec = old_cfg->etscfg; in i40e_hw_set_dcb_config()
7013 switch (new_cfg->etscfg.tsatable[i]) { in i40e_hw_dcb_config()
7017 new_cfg->etscfg.tcbwtable[i]; in i40e_hw_dcb_config()
7076 i40e_dcb_hw_rx_ets_bw_config(hw, new_cfg->etscfg.tcbwtable, mode, in i40e_hw_dcb_config()
7079 new_cfg->etscfg.prioritytable); in i40e_hw_dcb_config()
7080 i40e_dcb_hw_rx_up2tc_config(hw, new_cfg->etscfg.prioritytable); in i40e_hw_dcb_config()
7160 pf->tmp_cfg.etscfg.willing = I40E_IEEE_DEFAULT_ETS_WILLING; in i40e_dcb_sw_default_config()
[all …]
H A Di40e_client.c51 u8 tc = dcb_cfg->etscfg.prioritytable[i]; in i40e_client_get_params()
H A Di40e_type.h475 struct i40e_dcb_ets_config etscfg; member
H A Di40e_txrx.c3760 tclass = hw->local_dcbx_config.etscfg.prioritytable[prio]; in i40e_lan_select_queue()