/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_rss.c | 43 rss_cfg->rss_size = nic->kinfo.rss_size; in hclge_comm_rss_init_cfg() 67 void hclge_comm_get_rss_tc_info(u16 rss_size, u8 hw_tc_map, u16 *tc_offset, in hclge_comm_get_rss_tc_info() argument 73 roundup_size = roundup_pow_of_two(rss_size); in hclge_comm_get_rss_tc_info() 79 tc_offset[i] = (hw_tc_map & BIT(i)) ? rss_size * i : 0; in hclge_comm_get_rss_tc_info() 224 rss_cfg->rss_indirection_tbl[i] = i % rss_cfg->rss_size; in hclge_comm_rss_indir_init_cfg()
|
H A D | hclge_comm_rss.h | 70 u32 rss_size; member 122 void hclge_comm_get_rss_tc_info(u16 rss_size, u8 hw_tc_map, u16 *tc_offset,
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 227 hdev->rss_size_max = le16_to_cpu(queue_info->rss_size); in hclgevf_get_queue_info() 367 kinfo->rss_size = min_t(u16, hdev->rss_size_max, new_tqps / num_tc); in hclgevf_knic_setup() 368 new_tqps = kinfo->rss_size * num_tc; in hclgevf_knic_setup() 386 kinfo->rss_size = min_t(u16, kinfo->num_tqps / num_tc, in hclgevf_knic_setup() 387 kinfo->rss_size); in hclgevf_knic_setup() 653 return rss_cfg->rss_size; in hclgevf_get_tc_size() 2174 hclge_comm_get_rss_tc_info(rss_cfg->rss_size, hdev->hw_tc_map, in hclgevf_rss_init_hw() 3082 ch->combined_count = handle->kinfo.rss_size; in hclgevf_get_channels() 3109 if (kinfo->req_rss_size != kinfo->rss_size && kinfo->req_rss_size && in hclgevf_update_rss_size() 3111 kinfo->rss_size = kinfo->req_rss_size; in hclgevf_update_rss_size() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_tm.c | 665 return kinfo->rss_size * tc_info->num_tc; in hclge_vport_get_tqp_num() 703 if (kinfo->req_rss_size != kinfo->rss_size && kinfo->req_rss_size && in hclge_tm_update_kinfo_rss_size() 706 kinfo->rss_size, kinfo->req_rss_size); in hclge_tm_update_kinfo_rss_size() 707 kinfo->rss_size = kinfo->req_rss_size; in hclge_tm_update_kinfo_rss_size() 708 } else if (kinfo->rss_size > max_rss_size || in hclge_tm_update_kinfo_rss_size() 709 (!kinfo->req_rss_size && kinfo->rss_size < max_rss_size)) { in hclge_tm_update_kinfo_rss_size() 711 kinfo->rss_size = max_rss_size; in hclge_tm_update_kinfo_rss_size() 727 hdev->rss_cfg.rss_size = kinfo->rss_size; in hclge_tm_vport_tc_info_update() 735 kinfo->tc_info.tqp_offset[i] = i * kinfo->rss_size; in hclge_tm_vport_tc_info_update() 736 kinfo->tc_info.tqp_count[i] = kinfo->rss_size; in hclge_tm_vport_tc_info_update()
|
H A D | hclge_mbx.c | 196 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.rss_size) { in hclge_get_ring_chain_from_mbx() 199 vport->nic.kinfo.rss_size - 1U); in hclge_get_ring_chain_from_mbx() 522 queue_info->rss_size = cpu_to_le16(vport->nic.kinfo.rss_size); in hclge_get_vf_queue_info()
|
H A D | hclge_main.c | 1719 kinfo->rss_size = min_t(u16, hdev->pf_rss_size_max, in hclge_assign_tqp() 1723 kinfo->rss_size = min_t(u16, kinfo->rss_size, in hclge_assign_tqp() 4902 u16 rss_size; in hclge_init_rss_tc_mode() local 4907 rss_size = tc_info->tqp_count[i]; in hclge_init_rss_tc_mode() 4917 if (rss_size > ae_dev->dev_specs.rss_ind_tbl_size || in hclge_init_rss_tc_mode() 4918 rss_size == 0) { in hclge_init_rss_tc_mode() 4921 rss_size); in hclge_init_rss_tc_mode() 4925 roundup_size = roundup_pow_of_two(rss_size); in hclge_init_rss_tc_mode() 12334 ch->combined_count = handle->kinfo.rss_size; in hclge_get_channels() 12357 roundup_size = roundup_pow_of_two(vport->nic.kinfo.rss_size); in hclge_set_rss_tc_mode_cfg() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_lib.c | 885 vsi->rss_size = 1; in ice_vsi_set_rss_params() 897 vsi->rss_size = min_t(u16, vsi->num_rxq, max_rss_size); in ice_vsi_set_rss_params() 899 vsi->rss_size = min_t(u16, num_online_cpus(), in ice_vsi_set_rss_params() 905 vsi->rss_size = min_t(u16, num_online_cpus(), max_rss_size); in ice_vsi_set_rss_params() 913 vsi->rss_size = ICE_MAX_RSS_QS_PER_VF; in ice_vsi_set_rss_params() 1455 vsi->rss_size); in ice_vsi_manage_rss_lut() 1492 vsi->rss_size = min_t(u16, vsi->rss_size, vsi->ch_rss_size); in ice_vsi_cfg_rss_lut_key() 1494 vsi->rss_size = min_t(u16, vsi->rss_size, vsi->num_rxq); in ice_vsi_cfg_rss_lut_key() 1502 if (vsi->orig_rss_size && vsi->rss_size < vsi->orig_rss_size && in ice_vsi_cfg_rss_lut_key() 1504 vsi->rss_size = vsi->orig_rss_size; in ice_vsi_cfg_rss_lut_key() [all …]
|
H A D | ice.h | 359 u16 rss_size; /* Allocated RSS queues */ member 960 void ice_fill_rss_lut(u8 *lut, u16 rss_table_size, u16 rss_size);
|
H A D | ice_ethtool.c | 3133 cmd->data = vsi->rss_size; in ice_get_rxnfc() 3753 vsi->rss_size); in ice_set_rxfh() 3894 vsi->rss_size = 1; in ice_vsi_set_dflt_rss_lut() 3896 vsi->rss_size = ice_get_valid_rss_size(hw, req_rss_size); in ice_vsi_set_dflt_rss_lut() 3899 ice_fill_rss_lut(lut, vsi->rss_table_size, vsi->rss_size); in ice_vsi_set_dflt_rss_lut() 3990 vsi->rss_size = ice_get_valid_rss_size(&pf->hw, new_rx); in ice_set_channels()
|
/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nic.h | 144 u16 rss_size; member 593 struct rss_sz_msg rss_size; member
|
H A D | nicvf_main.c | 238 nic->rss_info.rss_size = mbx.rss_size.ind_tbl_size; in nicvf_handle_mbx_intr() 328 mbx.rss_size.msg = NIC_MBOX_MSG_RSS_SIZE; in nicvf_get_rss_size() 329 mbx.rss_size.vf_id = nic->vf_id; in nicvf_get_rss_size() 337 int ind_tbl_len = rss->rss_size; in nicvf_config_rss() 391 rss->hash_bits = ilog2(rounddown_pow_of_two(rss->rss_size)); in nicvf_rss_init() 393 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_rss_init()
|
H A D | nicvf_ethtool.c | 653 return nic->rss_info.rss_size; in nicvf_get_rxfh_indir_size() 664 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_get_rxfh() 695 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_set_rxfh()
|
H A D | nic_main.c | 554 mbx.rss_size.msg = NIC_MBOX_MSG_RSS_SIZE; in nic_send_rss_size() 555 mbx.rss_size.ind_tbl_size = nic->hw->rss_ind_tbl_size; in nic_send_rss_size()
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hclge_mbx.h | 204 __le16 rss_size; member
|
H A D | hns3_enet.c | 650 u16 alloc_tqps, max_rss_size, rss_size; in hns3_get_max_available_channels() local 653 rss_size = alloc_tqps / h->kinfo.tc_info.num_tc; in hns3_get_max_available_channels() 655 return min_t(u16, rss_size, max_rss_size); in hns3_get_max_available_channels() 5210 dev_info(priv->dev, "RSS size: %u\n", kinfo->rss_size); in hns3_info_show() 5830 if (kinfo->rss_size == new_tqp_num) in hns3_set_channels()
|
H A D | hns3_debugfs.c | 1068 kinfo->rss_size); in hns3_dbg_dev_specs()
|
/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | adapter.h | 99 u16 rss_size; /* size of VI's RSS table slice */ member
|
H A D | t4vf_hw.c | 539 pi->rss_size = FW_VI_CMD_RSSSIZE_G(be16_to_cpu(vi_rpl.rsssize_pkd)); in t4vf_port_init()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 1904 if (!vsi->rss_size) in i40e_vsi_config_rss() 1905 vsi->rss_size = min_t(int, pf->alloc_rss_size, in i40e_vsi_config_rss() 1907 if (!vsi->rss_size) in i40e_vsi_config_rss() 1919 i40e_fill_rss_lut(pf, lut, vsi->rss_table_size, vsi->rss_size); in i40e_vsi_config_rss() 1993 vsi->rss_size = max_qcount; in i40e_vsi_setup_queue_map_mqprio() 5768 vsi->rss_size = min_t(int, pf->alloc_rss_size, in i40e_update_adq_vsi_queues() 5881 vsi->rss_size = min_t(int, vsi->back->alloc_rss_size, in i40e_vsi_config_tc() 6207 static int i40e_vsi_reconfig_rss(struct i40e_vsi *vsi, u16 rss_size) in i40e_vsi_reconfig_rss() argument 6216 if (!vsi->rss_size) in i40e_vsi_reconfig_rss() 6219 if (rss_size > vsi->rss_size) in i40e_vsi_reconfig_rss() [all …]
|
H A D | i40e.h | 855 u16 rss_size; /* Allocated RSS queues */ member 1162 u16 rss_table_size, u16 rss_size);
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 826 u16 rss_size, u16 viid) in cxgb4_config_rss() argument 831 ret = t4_config_rss_range(adap, adap->mbox, viid, 0, rss_size, rss, in cxgb4_config_rss() 832 rss_size); in cxgb4_config_rss() 867 rss = kmalloc_array(pi->rss_size, sizeof(u16), GFP_KERNEL); in cxgb4_write_rss() 872 for (i = 0; i < pi->rss_size; i++, queues++) in cxgb4_write_rss() 875 err = cxgb4_config_rss(pi, rss, pi->rss_size, pi->viid); in cxgb4_write_rss() 894 for (j = 0; j < pi->rss_size; j++) in setup_rss() 1391 rss = kcalloc(pi->rss_size, sizeof(u16), GFP_KERNEL); in cxgb4_port_mirror_alloc_queues() 1398 for (i = 0; i < pi->rss_size; i++) in cxgb4_port_mirror_alloc_queues() 1401 ret = cxgb4_config_rss(pi, rss, pi->rss_size, pi->viid_mirror); in cxgb4_port_mirror_alloc_queues() [all …]
|
H A D | cxgb4_ethtool.c | 1583 return pi->rss_size; in get_rss_table_size() 1590 unsigned int n = pi->rss_size; in get_rss_table() 1619 for (i = 0; i < pi->rss_size; i++) in set_rss_table()
|
H A D | t4_hw.c | 7622 unsigned int *rss_size, u8 *vivld, u8 *vin) in t4_alloc_vi() argument 7655 if (rss_size) in t4_alloc_vi() 7656 *rss_size = FW_VI_CMD_RSSSIZE_G(be16_to_cpu(c.rsssize_pkd)); in t4_alloc_vi() 9606 unsigned int rss_size; in t4_init_portinfo() local 9665 ret = t4_alloc_vi(pi->adapter, mbox, port, pf, vf, 1, mac, &rss_size, in t4_init_portinfo() 9673 pi->rss_size = rss_size; in t4_init_portinfo()
|
H A D | cxgb4.h | 657 u16 rss_size; /* size of VI's RSS table slice */ member 1991 unsigned int *rss_size, u8 *vivld, u8 *vin);
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 871 for (idx = 0; idx < rss->rss_size; idx++) in otx2_set_rxfh() 913 for (idx = 0; idx < rss->rss_size; idx++) in otx2_get_rxfh()
|