/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb.c | 85 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits() 107 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits() 152 dcb_config->tc_config[i].desc_credits_max = in ixgbe_dcb_calculate_tc_credits() 164 struct tc_configuration *tc_config = &cfg->tc_config[0]; in ixgbe_dcb_unpack_pfc() local 168 if (tc_config[tc].dcb_pfc != pfc_disabled) in ixgbe_dcb_unpack_pfc() 176 struct tc_configuration *tc_config = &cfg->tc_config[0]; in ixgbe_dcb_unpack_refill() local 180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill() 185 struct tc_configuration *tc_config in ixgbe_dcb_unpack_max() local 195 struct tc_configuration *tc_config = &cfg->tc_config[0]; ixgbe_dcb_unpack_bwgid() local 205 struct tc_configuration *tc_config = &cfg->tc_config[0]; ixgbe_dcb_unpack_prio() local 214 struct tc_configuration *tc_config = &cfg->tc_config[0]; ixgbe_dcb_get_tc_from_up() local [all...] |
H A D | ixgbe_dcb_nl.c | 45 src = &scfg->tc_config[i - DCB_PG_ATTR_TC_0]; in ixgbe_copy_dcb_cfg() 46 dst = &dcfg->tc_config[i - DCB_PG_ATTR_TC_0]; in ixgbe_copy_dcb_cfg() 107 if (dcfg->tc_config[j].dcb_pfc != scfg->tc_config[j].dcb_pfc) { in ixgbe_copy_dcb_cfg() 108 dcfg->tc_config[j].dcb_pfc = scfg->tc_config[j].dcb_pfc; in ixgbe_copy_dcb_cfg() 174 adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_tx() 176 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_id = bwg_id; in ixgbe_dcbnl_set_pg_tc_cfg_tx() 178 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_percent = in ixgbe_dcbnl_set_pg_tc_cfg_tx() 181 adapter->temp_dcb_cfg.tc_config[t in ixgbe_dcbnl_set_pg_tc_cfg_tx() [all...] |
H A D | ixgbe_dcb.h | 109 struct tc_configuration tc_config[MAX_TRAFFIC_CLASS]; member
|
H A D | ixgbe_main.c | 6233 tc = &adapter->dcb_cfg.tc_config[j]; in ixgbe_init_dcb() 6242 tc = &adapter->dcb_cfg.tc_config[0]; in ixgbe_init_dcb()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb.c | 85 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits() 107 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits() 152 dcb_config->tc_config[i].desc_credits_max = in ixgbe_dcb_calculate_tc_credits() 164 struct tc_configuration *tc_config = &cfg->tc_config[0]; in ixgbe_dcb_unpack_pfc() local 168 if (tc_config[tc].dcb_pfc != pfc_disabled) in ixgbe_dcb_unpack_pfc() 176 struct tc_configuration *tc_config = &cfg->tc_config[0]; in ixgbe_dcb_unpack_refill() local 180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill() 185 struct tc_configuration *tc_config in ixgbe_dcb_unpack_max() local 195 struct tc_configuration *tc_config = &cfg->tc_config[0]; ixgbe_dcb_unpack_bwgid() local 205 struct tc_configuration *tc_config = &cfg->tc_config[0]; ixgbe_dcb_unpack_prio() local 214 struct tc_configuration *tc_config = &cfg->tc_config[0]; ixgbe_dcb_get_tc_from_up() local [all...] |
H A D | ixgbe_dcb_nl.c | 43 src = &scfg->tc_config[i - DCB_PG_ATTR_TC_0]; in ixgbe_copy_dcb_cfg() 44 dst = &dcfg->tc_config[i - DCB_PG_ATTR_TC_0]; in ixgbe_copy_dcb_cfg() 105 if (dcfg->tc_config[j].dcb_pfc != scfg->tc_config[j].dcb_pfc) { in ixgbe_copy_dcb_cfg() 106 dcfg->tc_config[j].dcb_pfc = scfg->tc_config[j].dcb_pfc; in ixgbe_copy_dcb_cfg() 172 adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_tx() 174 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_id = bwg_id; in ixgbe_dcbnl_set_pg_tc_cfg_tx() 176 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_percent = in ixgbe_dcbnl_set_pg_tc_cfg_tx() 179 adapter->temp_dcb_cfg.tc_config[t in ixgbe_dcbnl_set_pg_tc_cfg_tx() [all...] |
H A D | ixgbe_dcb.h | 109 struct tc_configuration tc_config[MAX_TRAFFIC_CLASS]; member
|
H A D | ixgbe_main.c | 6267 tc = &adapter->dcb_cfg.tc_config[j]; in ixgbe_init_dcb() 6276 tc = &adapter->dcb_cfg.tc_config[0]; in ixgbe_init_dcb()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 1796 * i40e_vsi_setup_queue_map_mqprio - Prepares mqprio based tc_config 1801 * Prepares VSI tc_config to have queue configurations based on MQPRIO options. 1815 vsi->tc_config.numtc = vsi->mqprio_qopt.qopt.num_tc; in i40e_vsi_setup_queue_map_mqprio() 1816 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map_mqprio() 1830 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map_mqprio() 1835 vsi->tc_config.tc_info[i].qoffset = offset; in i40e_vsi_setup_queue_map_mqprio() 1836 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map_mqprio() 1837 vsi->tc_config.tc_info[i].netdev_tc = netdev_tc++; in i40e_vsi_setup_queue_map_mqprio() 1843 vsi->tc_config.tc_info[i].qoffset = 0; in i40e_vsi_setup_queue_map_mqprio() 1844 vsi->tc_config in i40e_vsi_setup_queue_map_mqprio() [all...] |
H A D | i40e_debugfs.c | 468 " tc_config: numtc = %d, enabled_tc = 0x%x\n", in i40e_dbg_dump_vsi_seid() 469 vsi->tc_config.numtc, vsi->tc_config.enabled_tc); in i40e_dbg_dump_vsi_seid() 472 " tc_config: tc = %d, qoffset = %d, qcount = %d, netdev_tc = %d\n", in i40e_dbg_dump_vsi_seid() 473 i, vsi->tc_config.tc_info[i].qoffset, in i40e_dbg_dump_vsi_seid() 474 vsi->tc_config.tc_info[i].qcount, in i40e_dbg_dump_vsi_seid() 475 vsi->tc_config.tc_info[i].netdev_tc); in i40e_dbg_dump_vsi_seid() 888 vsi->tc_config.enabled_tc); in i40e_dbg_command_write()
|
H A D | i40e_dcb_nl.c | 171 if (tc_map & vsi->tc_config.enabled_tc) { in i40e_dcbnl_set_all()
|
H A D | i40e_txrx.c | 3555 if (vsi->tc_config.numtc == 1) in i40e_lan_select_queue() 3562 if (unlikely(!(vsi->tc_config.enabled_tc & BIT(tclass)))) in i40e_lan_select_queue() 3566 qcount = vsi->tc_config.tc_info[tclass].qcount; in i40e_lan_select_queue() 3569 qoffset = vsi->tc_config.tc_info[tclass].qoffset; in i40e_lan_select_queue()
|
H A D | i40e_client.c | 57 if (!(vsi->tc_config.enabled_tc & BIT(tc))) in i40e_client_get_params()
|
H A D | i40e.h | 807 struct i40e_tc_configuration tc_config; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 1917 * i40e_vsi_setup_queue_map_mqprio - Prepares mqprio based tc_config 1922 * Prepares VSI tc_config to have queue configurations based on MQPRIO options. 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 in i40e_vsi_setup_queue_map_mqprio() [all...] |
H A D | i40e_debugfs.c | 468 " tc_config: numtc = %d, enabled_tc = 0x%x\n", in i40e_dbg_dump_vsi_seid() 469 vsi->tc_config.numtc, vsi->tc_config.enabled_tc); in i40e_dbg_dump_vsi_seid() 472 " tc_config: tc = %d, qoffset = %d, qcount = %d, netdev_tc = %d\n", in i40e_dbg_dump_vsi_seid() 473 i, vsi->tc_config.tc_info[i].qoffset, in i40e_dbg_dump_vsi_seid() 474 vsi->tc_config.tc_info[i].qcount, in i40e_dbg_dump_vsi_seid() 475 vsi->tc_config.tc_info[i].netdev_tc); in i40e_dbg_dump_vsi_seid() 888 vsi->tc_config.enabled_tc); in i40e_dbg_command_write()
|
H A D | i40e_txrx.c | 3769 if (vsi->tc_config.numtc == 1 || in i40e_lan_select_queue() 3777 if (unlikely(!(vsi->tc_config.enabled_tc & BIT(tclass)))) in i40e_lan_select_queue() 3781 qcount = vsi->tc_config.tc_info[tclass].qcount; in i40e_lan_select_queue() 3784 qoffset = vsi->tc_config.tc_info[tclass].qoffset; in i40e_lan_select_queue()
|
H A D | i40e_client.c | 56 if (!(vsi->tc_config.enabled_tc & BIT(tc))) in i40e_client_get_params()
|
H A D | i40e_dcb_nl.c | 909 if (tc_map & vsi->tc_config.enabled_tc) { in i40e_dcbnl_set_all()
|
H A D | i40e.h | 921 struct i40e_tc_configuration tc_config; member
|