/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_lib.c | 116 num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); in ice_dcb_get_num_tc() 313 struct ice_dcb_ets_cfg *etscfg = &dcbcfg->etscfg; in ice_dcb_bwchk() local 326 etscfg->tcbwtable[0] = ICE_TC_MAX_BW; in ice_dcb_bwchk() 331 total_bw += etscfg->tcbwtable[i]; in ice_dcb_bwchk() 334 etscfg->tcbwtable[0] = ICE_TC_MAX_BW; in ice_dcb_bwchk() 415 memcpy(&curr_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg() 416 memcpy(&new_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg() 485 if (memcmp(&new_cfg->etscfg, &old_cfg->etscfg, in ice_dcb_need_recfg() 486 sizeof(new_cfg->etscfg))) { in ice_dcb_need_recfg() 488 if (memcmp(&new_cfg->etscfg.prio_table, in ice_dcb_need_recfg() [all …]
|
D | ice_dcb.c | 211 struct ice_dcb_ets_cfg *etscfg; in ice_parse_ieee_etscfg_tlv() local 221 etscfg = &dcbcfg->etscfg; in ice_parse_ieee_etscfg_tlv() 222 etscfg->willing = ((buf[0] & ICE_IEEE_ETS_WILLING_M) >> in ice_parse_ieee_etscfg_tlv() 224 etscfg->cbs = ((buf[0] & ICE_IEEE_ETS_CBS_M) >> ICE_IEEE_ETS_CBS_S); in ice_parse_ieee_etscfg_tlv() 225 etscfg->maxtcs = ((buf[0] & ICE_IEEE_ETS_MAXTC_M) >> in ice_parse_ieee_etscfg_tlv() 229 ice_parse_ieee_ets_common_tlv(&buf[1], etscfg); in ice_parse_ieee_etscfg_tlv() 378 struct ice_dcb_ets_cfg *etscfg; in ice_parse_cee_pgcfg_tlv() local 383 etscfg = &dcbcfg->etscfg; in ice_parse_cee_pgcfg_tlv() 386 etscfg->willing = 1; in ice_parse_cee_pgcfg_tlv() 388 etscfg->cbs = 0; in ice_parse_cee_pgcfg_tlv() [all …]
|
D | ice_dcb_nl.c | 40 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() 77 new_cfg->etscfg.willing = ets->willing; in ice_dcbnl_setets() 78 new_cfg->etscfg.cbs = ets->cbs; in ice_dcbnl_setets() [all …]
|
D | ice_idc.c | 220 qos->tc_info[i].rel_bw = dcbx_cfg->etscfg.tcbwtable[i]; in ice_get_qos_params()
|
D | ice_type.h | 663 struct ice_dcb_ets_cfg etscfg; member
|
D | ice_lib.c | 3520 u8 ets_tc = dcbcfg->etscfg.prio_table[i]; in ice_vsi_cfg_netdev_tc()
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb.c | 39 struct i40e_dcb_ets_config *etscfg; in i40e_parse_ieee_etscfg_tlv() local 52 etscfg = &dcbcfg->etscfg; in i40e_parse_ieee_etscfg_tlv() 53 etscfg->willing = (u8)((buf[offset] & I40E_IEEE_ETS_WILLING_MASK) >> in i40e_parse_ieee_etscfg_tlv() 55 etscfg->cbs = (u8)((buf[offset] & I40E_IEEE_ETS_CBS_MASK) >> in i40e_parse_ieee_etscfg_tlv() 57 etscfg->maxtcs = (u8)((buf[offset] & I40E_IEEE_ETS_MAXTC_MASK) >> in i40e_parse_ieee_etscfg_tlv() 74 etscfg->prioritytable[i * 2] = priority; in i40e_parse_ieee_etscfg_tlv() 77 etscfg->prioritytable[i * 2 + 1] = priority; in i40e_parse_ieee_etscfg_tlv() 88 etscfg->tcbwtable[i] = buf[offset++]; in i40e_parse_ieee_etscfg_tlv() 97 etscfg->tsatable[i] = buf[offset++]; in i40e_parse_ieee_etscfg_tlv() 281 struct i40e_dcb_ets_config *etscfg; in i40e_parse_cee_pgcfg_tlv() local [all …]
|
D | i40e_dcb_nl.c | 45 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets() 47 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets() 48 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets() 50 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets() 52 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, in i40e_dcbnl_ieee_getets() 54 memcpy(ets->prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets() 60 memcpy(ets->reco_prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets() 122 pf->tmp_cfg.etscfg.willing = ets->willing; in i40e_dcbnl_ieee_setets() 123 pf->tmp_cfg.etscfg.maxtcs = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_setets() 124 pf->tmp_cfg.etscfg.cbs = ets->cbs; in i40e_dcbnl_ieee_setets() [all …]
|
D | i40e_debugfs.c | 1086 cfg->etscfg.willing, cfg->etscfg.cbs, in i40e_dbg_command_write() 1087 cfg->etscfg.maxtcs); in i40e_dbg_command_write() 1090 i, cfg->etscfg.prioritytable[i], in i40e_dbg_command_write() 1091 cfg->etscfg.tcbwtable[i], in i40e_dbg_command_write() 1092 cfg->etscfg.tsatable[i]); in i40e_dbg_command_write() 1115 r_cfg->etscfg.willing, in i40e_dbg_command_write() 1116 r_cfg->etscfg.cbs, r_cfg->etscfg.maxtcs); in i40e_dbg_command_write() 1119 i, r_cfg->etscfg.prioritytable[i], in i40e_dbg_command_write() 1120 r_cfg->etscfg.tcbwtable[i], in i40e_dbg_command_write() 1121 r_cfg->etscfg.tsatable[i]); in i40e_dbg_command_write()
|
D | i40e_main.c | 5362 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map() 5388 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc() 5670 u8 ets_tc = dcbcfg->etscfg.prioritytable[i]; in i40e_vsi_config_netdev_tc() 6876 old_cfg->etsrec = old_cfg->etscfg; in i40e_hw_set_dcb_config() 6948 switch (new_cfg->etscfg.tsatable[i]) { in i40e_hw_dcb_config() 6952 new_cfg->etscfg.tcbwtable[i]; in i40e_hw_dcb_config() 7011 i40e_dcb_hw_rx_ets_bw_config(hw, new_cfg->etscfg.tcbwtable, mode, in i40e_hw_dcb_config() 7014 new_cfg->etscfg.prioritytable); in i40e_hw_dcb_config() 7015 i40e_dcb_hw_rx_up2tc_config(hw, new_cfg->etscfg.prioritytable); in i40e_hw_dcb_config() 7093 pf->tmp_cfg.etscfg.willing = I40E_IEEE_DEFAULT_ETS_WILLING; in i40e_dcb_sw_default_config() [all …]
|
D | i40e_client.c | 52 u8 tc = dcb_cfg->etscfg.prioritytable[i]; in i40e_client_get_params()
|
D | i40e_type.h | 520 struct i40e_dcb_ets_config etscfg; member
|
D | i40e_txrx.c | 3694 tclass = hw->local_dcbx_config.etscfg.prioritytable[prio]; in i40e_lan_select_queue()
|