Lines Matching refs:tc_config

1936 	vsi->tc_config.numtc = vsi->mqprio_qopt.qopt.num_tc;  in i40e_vsi_setup_queue_map_mqprio()
1937 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map_mqprio()
1951 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map_mqprio()
1956 vsi->tc_config.tc_info[i].qoffset = offset; in i40e_vsi_setup_queue_map_mqprio()
1957 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map_mqprio()
1958 vsi->tc_config.tc_info[i].netdev_tc = netdev_tc++; in i40e_vsi_setup_queue_map_mqprio()
1964 vsi->tc_config.tc_info[i].qoffset = 0; in i40e_vsi_setup_queue_map_mqprio()
1965 vsi->tc_config.tc_info[i].qcount = 1; in i40e_vsi_setup_queue_map_mqprio()
1966 vsi->tc_config.tc_info[i].netdev_tc = 0; in i40e_vsi_setup_queue_map_mqprio()
2072 vsi->tc_config.numtc = numtc; in i40e_vsi_setup_queue_map()
2073 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map()
2082 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map()
2090 vsi->tc_config.enabled_tc != 1) { in i40e_vsi_setup_queue_map()
2104 vsi->tc_config.tc_info[i].qoffset = offset; in i40e_vsi_setup_queue_map()
2105 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map()
2115 vsi->tc_config.tc_info[i].netdev_tc = netdev_tc++; in i40e_vsi_setup_queue_map()
2126 vsi->tc_config.tc_info[i].qoffset = 0; in i40e_vsi_setup_queue_map()
2127 vsi->tc_config.tc_info[i].qcount = 1; in i40e_vsi_setup_queue_map()
2128 vsi->tc_config.tc_info[i].netdev_tc = 0; in i40e_vsi_setup_queue_map()
3763 if (!(vsi->tc_config.enabled_tc & BIT_ULL(n))) in i40e_vsi_config_dcb_rings()
3766 qoffset = vsi->tc_config.tc_info[n].qoffset; in i40e_vsi_config_dcb_rings()
3767 qcount = vsi->tc_config.tc_info[n].qcount; in i40e_vsi_config_dcb_rings()
5645 if (netdev_set_num_tc(netdev, vsi->tc_config.numtc)) in i40e_vsi_config_netdev_tc()
5657 if (vsi->tc_config.enabled_tc & BIT(i)) in i40e_vsi_config_netdev_tc()
5659 vsi->tc_config.tc_info[i].netdev_tc, in i40e_vsi_config_netdev_tc()
5660 vsi->tc_config.tc_info[i].qcount, in i40e_vsi_config_netdev_tc()
5661 vsi->tc_config.tc_info[i].qoffset); in i40e_vsi_config_netdev_tc()
5672 netdev_tc = vsi->tc_config.tc_info[ets_tc].netdev_tc; in i40e_vsi_config_netdev_tc()
5721 i40e_vsi_setup_queue_map(vsi, &ctxt, vsi->tc_config.enabled_tc, in i40e_update_adq_vsi_queues()
5771 if (vsi->tc_config.enabled_tc == enabled_tc && in i40e_vsi_config_tc()
6648 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_configure_queue_channels()
6657 vsi->tc_config.tc_info[i].qcount; in i40e_configure_queue_channels()
6659 vsi->tc_config.tc_info[i].qoffset; in i40e_configure_queue_channels()
7632 vsi->tc_config.numtc = 1; in i40e_vsi_set_default_tc_config()
7633 vsi->tc_config.enabled_tc = 1; in i40e_vsi_set_default_tc_config()
7640 vsi->tc_config.tc_info[i].qoffset = 0; in i40e_vsi_set_default_tc_config()
7642 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_set_default_tc_config()
7644 vsi->tc_config.tc_info[i].qcount = 1; in i40e_vsi_set_default_tc_config()
7645 vsi->tc_config.tc_info[i].netdev_tc = 0; in i40e_vsi_set_default_tc_config()
8212 if (enabled_tc == vsi->tc_config.enabled_tc && in i40e_setup_tc()
8230 (!is_power_of_2(vsi->tc_config.tc_info[0].qcount))) { in i40e_setup_tc()
8233 vsi->tc_config.tc_info[0].qcount); in i40e_setup_tc()
8241 vsi->seid, vsi->tc_config.tc_info[0].qcount); in i40e_setup_tc()
8730 } else if (vsi->tc_config.enabled_tc & BIT(tc)) { in i40e_handle_tclass()
12425 (vsi->tc_config.numtc ? vsi->tc_config.numtc : 1); in i40e_pf_config_rss()
12496 qcount = vsi->num_queue_pairs / vsi->tc_config.numtc; in i40e_reconfig_rss_queues()
13158 vsi->tc_config.enabled_tc); in i40e_ndo_bridge_setlink()
13820 i40e_vsi_config_netdev_tc(vsi, vsi->tc_config.enabled_tc); in i40e_config_netdev()
14328 enabled_tc = pf->vsi[pf->lan_vsi]->tc_config.enabled_tc; in i40e_vsi_reinit_setup()
14329 pf->vsi[pf->lan_vsi]->tc_config.enabled_tc = 0; in i40e_vsi_reinit_setup()
14416 vsi->tc_config.enabled_tc); in i40e_vsi_setup()
14419 vsi->tc_config.enabled_tc); in i40e_vsi_setup()
15108 u8 enabled_tc = pf->vsi[pf->lan_vsi]->tc_config.enabled_tc; in i40e_setup_pf_switch()
15110 pf->vsi[pf->lan_vsi]->tc_config.enabled_tc = 0; in i40e_setup_pf_switch()