Home
last modified time | relevance | path

Searched refs:dcbcfg (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb.c208 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_etscfg_tlv() argument
220 etscfg = &dcbcfg->etscfg; in ice_parse_ieee_etscfg_tlv()
238 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_etsrec_tlv() argument
243 ice_parse_ieee_ets_common_tlv(&buf[1], &dcbcfg->etsrec); in ice_parse_ieee_etsrec_tlv()
255 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_pfccfg_tlv() argument
265 dcbcfg->pfc.willing = FIELD_GET(ICE_IEEE_PFC_WILLING_M, buf[0]); in ice_parse_ieee_pfccfg_tlv()
266 dcbcfg->pfc.mbc = FIELD_GET(ICE_IEEE_PFC_MBC_M, buf[0]); in ice_parse_ieee_pfccfg_tlv()
267 dcbcfg->pfc.pfccap = FIELD_GET(ICE_IEEE_PFC_CAP_M, buf[0]); in ice_parse_ieee_pfccfg_tlv()
268 dcbcfg->pfc.pfcena = buf[1]; in ice_parse_ieee_pfccfg_tlv()
280 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_app_tlv() argument
[all …]
H A Dice_dcb_lib.h19 u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg *dcbcfg);
25 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg);
78 static inline u8 ice_dcb_get_ena_tc(struct ice_dcbx_cfg __always_unused *dcbcfg) in ice_dcb_get_ena_tc() argument
83 static inline u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg __always_unused *dcbcfg) in ice_dcb_get_num_tc() argument
H A Dice_dcb.h144 struct ice_dcbx_cfg *dcbcfg);
H A Dice_txrx.c2297 static u8 ice_get_dscp_up(struct ice_dcbx_cfg *dcbcfg, struct sk_buff *skb) in ice_get_dscp_up() argument
2306 return dcbcfg->dscp_map[dscp]; in ice_get_dscp_up()
2314 struct ice_dcbx_cfg *dcbcfg; in ice_select_queue() local
2316 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_select_queue()
2317 if (dcbcfg->pfc_mode == ICE_QOS_MODE_DSCP) in ice_select_queue()
2318 skb->priority = ice_get_dscp_up(dcbcfg, skb); in ice_select_queue()
H A Dice_lib.c3206 struct ice_dcbx_cfg *dcbcfg; in ice_vsi_cfg_netdev_tc() local
3228 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_vsi_cfg_netdev_tc()
3251 u8 ets_tc = dcbcfg->etscfg.prio_table[i]; in ice_vsi_cfg_netdev_tc()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.c38 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_etscfg_tlv() argument
53 etscfg = &dcbcfg->etscfg; in i40e_parse_ieee_etscfg_tlv()
104 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_etsrec_tlv() argument
124 dcbcfg->etsrec.prioritytable[i * 2] = priority; in i40e_parse_ieee_etsrec_tlv()
126 dcbcfg->etsrec.prioritytable[(i * 2) + 1] = priority; in i40e_parse_ieee_etsrec_tlv()
137 dcbcfg->etsrec.tcbwtable[i] = buf[offset++]; in i40e_parse_ieee_etsrec_tlv()
146 dcbcfg->etsrec.tsatable[i] = buf[offset++]; in i40e_parse_ieee_etsrec_tlv()
157 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_pfccfg_tlv() argument
167 dcbcfg->pfc.willing = FIELD_GET(I40E_IEEE_PFC_WILLING_MASK, buf[0]); in i40e_parse_ieee_pfccfg_tlv()
168 dcbcfg->pfc.mbc = FIELD_GET(I40E_IEEE_PFC_MBC_MASK, buf[0]); in i40e_parse_ieee_pfccfg_tlv()
[all …]
H A Di40e_main.c5381 struct i40e_dcbx_config *dcbcfg = &hw->local_dcbx_config; in i40e_get_iscsi_tc_map() local
5383 for (i = 0; i < dcbcfg->numapps; i++) { in i40e_get_iscsi_tc_map()
5384 app = dcbcfg->app[i]; in i40e_get_iscsi_tc_map()
5387 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map()
5402 static u8 i40e_dcb_get_num_tc(struct i40e_dcbx_config *dcbcfg) in i40e_dcb_get_num_tc() argument
5413 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc()
5445 static u8 i40e_dcb_get_enabled_tc(struct i40e_dcbx_config *dcbcfg) in i40e_dcb_get_enabled_tc() argument
5447 u8 num_tc = i40e_dcb_get_num_tc(dcbcfg); in i40e_dcb_get_enabled_tc()
5660 struct i40e_dcbx_config *dcbcfg = &hw->local_dcbx_config; in i40e_vsi_config_netdev_tc() local
5696 u8 ets_tc = dcbcfg->etscfg.prioritytable[i]; in i40e_vsi_config_netdev_tc()