Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c39 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 …]
Di40e_dcb_nl.c42 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets()
43 ets->ets_cap = dcbxcfg->etscfg.maxtcs; in i40e_dcbnl_ieee_getets()
44 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets()
45 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
47 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets()
49 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, in i40e_dcbnl_ieee_getets()
51 memcpy(ets->prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets()
57 memcpy(ets->reco_prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets()
168 tc_map = BIT(dcbxcfg->etscfg.prioritytable[prio]); in i40e_dcbnl_set_all()
Di40e_debugfs.c1086 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()
Di40e_ethtool.c5107 dcbcfg->etscfg.willing = 1; in i40e_set_priv_flags()
5108 dcbcfg->etscfg.maxtcs = 0; in i40e_set_priv_flags()
5109 dcbcfg->etscfg.tcbwtable[0] = 100; in i40e_set_priv_flags()
5111 dcbcfg->etscfg.tcbwtable[i] = 0; in i40e_set_priv_flags()
5113 dcbcfg->etscfg.prioritytable[i] = 0; in i40e_set_priv_flags()
5114 dcbcfg->etscfg.tsatable[0] = I40E_IEEE_TSA_ETS; in i40e_set_priv_flags()
Di40e_client.c53 u8 tc = dcb_cfg->etscfg.prioritytable[i]; in i40e_client_get_params()
Di40e_main.c5183 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map()
5209 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc()
5490 u8 ets_tc = dcbcfg->etscfg.prioritytable[i]; in i40e_vsi_config_netdev_tc()
8806 if (memcmp(&new_cfg->etscfg, in i40e_dcb_need_reconfig()
8807 &old_cfg->etscfg, in i40e_dcb_need_reconfig()
8808 sizeof(new_cfg->etscfg))) { in i40e_dcb_need_reconfig()
8810 if (memcmp(&new_cfg->etscfg.prioritytable, in i40e_dcb_need_reconfig()
8811 &old_cfg->etscfg.prioritytable, in i40e_dcb_need_reconfig()
8812 sizeof(new_cfg->etscfg.prioritytable))) { in i40e_dcb_need_reconfig()
8817 if (memcmp(&new_cfg->etscfg.tcbwtable, in i40e_dcb_need_reconfig()
[all …]
Di40e_type.h519 struct i40e_dcb_ets_config etscfg; member
Di40e_txrx.c3560 tclass = hw->local_dcbx_config.etscfg.prioritytable[prio]; in i40e_lan_select_queue()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_dcb_lib.c41 u8 ets_tc = dcbcfg->etscfg.prio_table[i]; in ice_vsi_cfg_netdev_tc()
158 num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); in ice_dcb_get_num_tc()
236 struct ice_dcb_ets_cfg *etscfg = &dcbcfg->etscfg; in ice_dcb_bwchk() local
249 etscfg->tcbwtable[0] = ICE_TC_MAX_BW; in ice_dcb_bwchk()
254 total_bw += etscfg->tcbwtable[i]; in ice_dcb_bwchk()
257 etscfg->tcbwtable[0] = ICE_TC_MAX_BW; in ice_dcb_bwchk()
324 memcpy(&curr_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg()
325 memcpy(&new_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg()
393 if (memcmp(&new_cfg->etscfg, &old_cfg->etscfg, in ice_dcb_need_recfg()
394 sizeof(new_cfg->etscfg))) { in ice_dcb_need_recfg()
[all …]
Dice_dcb.c212 struct ice_dcb_ets_cfg *etscfg; in ice_parse_ieee_etscfg_tlv() local
222 etscfg = &dcbcfg->etscfg; in ice_parse_ieee_etscfg_tlv()
223 etscfg->willing = ((buf[0] & ICE_IEEE_ETS_WILLING_M) >> in ice_parse_ieee_etscfg_tlv()
225 etscfg->cbs = ((buf[0] & ICE_IEEE_ETS_CBS_M) >> ICE_IEEE_ETS_CBS_S); in ice_parse_ieee_etscfg_tlv()
226 etscfg->maxtcs = ((buf[0] & ICE_IEEE_ETS_MAXTC_M) >> in ice_parse_ieee_etscfg_tlv()
230 ice_parse_ieee_ets_common_tlv(&buf[1], etscfg); in ice_parse_ieee_etscfg_tlv()
379 struct ice_dcb_ets_cfg *etscfg; in ice_parse_cee_pgcfg_tlv() local
384 etscfg = &dcbcfg->etscfg; in ice_parse_cee_pgcfg_tlv()
387 etscfg->willing = 1; in ice_parse_cee_pgcfg_tlv()
389 etscfg->cbs = 0; in ice_parse_cee_pgcfg_tlv()
[all …]
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()
77 new_cfg->etscfg.willing = ets->willing; in ice_dcbnl_setets()
78 new_cfg->etscfg.cbs = ets->cbs; in ice_dcbnl_setets()
[all …]
Dice_type.h507 struct ice_dcb_ets_cfg etscfg; member