Home
last modified time | relevance | path

Searched refs:rss_size (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c457 kinfo->rss_size = min_t(u16, hdev->rss_size_max, new_tqps / num_tc); in hclgevf_knic_setup()
458 new_tqps = kinfo->rss_size * num_tc; in hclgevf_knic_setup()
476 kinfo->rss_size = min_t(u16, kinfo->num_tqps / num_tc, in hclgevf_knic_setup()
477 kinfo->rss_size); in hclgevf_knic_setup()
689 static int hclgevf_set_rss_tc_mode(struct hclgevf_dev *hdev, u16 rss_size) in hclgevf_set_rss_tc_mode() argument
702 roundup_size = roundup_pow_of_two(rss_size); in hclgevf_set_rss_tc_mode()
708 tc_offset[i] = (hdev->hw_tc_map & BIT(i)) ? rss_size * i : 0; in hclgevf_set_rss_tc_mode()
1105 return rss_cfg->rss_size; in hclgevf_get_tc_size()
2627 rss_cfg->rss_size = hdev->nic.kinfo.rss_size; in hclgevf_rss_init_cfg()
2658 rss_cfg->rss_indirection_tbl[i] = i % rss_cfg->rss_size; in hclgevf_rss_init_cfg()
[all …]
Dhclgevf_main.h225 u32 rss_size; member
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c624 return kinfo->rss_size * tc_info->num_tc; in hclge_vport_get_tqp_num()
660 if (kinfo->req_rss_size != kinfo->rss_size && kinfo->req_rss_size && in hclge_tm_update_kinfo_rss_size()
663 kinfo->rss_size, kinfo->req_rss_size); in hclge_tm_update_kinfo_rss_size()
664 kinfo->rss_size = kinfo->req_rss_size; in hclge_tm_update_kinfo_rss_size()
665 } else if (kinfo->rss_size > max_rss_size || in hclge_tm_update_kinfo_rss_size()
666 (!kinfo->req_rss_size && kinfo->rss_size < max_rss_size)) { in hclge_tm_update_kinfo_rss_size()
668 kinfo->rss_size = max_rss_size; in hclge_tm_update_kinfo_rss_size()
681 vport->alloc_rss_size = kinfo->rss_size; in hclge_tm_vport_tc_info_update()
690 kinfo->tc_info.tqp_offset[i] = i * kinfo->rss_size; in hclge_tm_vport_tc_info_update()
691 kinfo->tc_info.tqp_count[i] = kinfo->rss_size; in hclge_tm_vport_tc_info_update()
Dhclge_mbx.c190 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.rss_size) { in hclge_get_ring_chain_from_mbx()
193 vport->nic.kinfo.rss_size - 1); in hclge_get_ring_chain_from_mbx()
439 &vport->nic.kinfo.rss_size, sizeof(u16)); in hclge_get_vf_queue_info()
Dhclge_main.c1731 kinfo->rss_size = min_t(u16, hdev->pf_rss_size_max, in hclge_assign_tqp()
1735 kinfo->rss_size = min_t(u16, kinfo->rss_size, in hclge_assign_tqp()
5002 u16 rss_size; in hclge_init_rss_tc_mode() local
5007 rss_size = tc_info->tqp_count[i]; in hclge_init_rss_tc_mode()
5017 if (rss_size > ae_dev->dev_specs.rss_ind_tbl_size || in hclge_init_rss_tc_mode()
5018 rss_size == 0) { in hclge_init_rss_tc_mode()
5021 rss_size); in hclge_init_rss_tc_mode()
5025 roundup_size = roundup_pow_of_two(rss_size); in hclge_init_rss_tc_mode()
12261 ch->combined_count = handle->kinfo.rss_size; in hclge_get_channels()
12283 u16 cur_rss_size = kinfo->rss_size; in hclge_set_channels()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnic.h144 u16 rss_size; member
593 struct rss_sz_msg rss_size; member
Dnicvf_main.c238 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()
Dnicvf_ethtool.c649 return nic->rss_info.rss_size; in nicvf_get_rxfh_indir_size()
660 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_get_rxfh()
690 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_set_rxfh()
Dnic_main.c554 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()
/drivers/net/ethernet/intel/ice/
Dice.h293 u16 rss_size; /* Allocated RSS queues */ member
661 void ice_fill_rss_lut(u8 *lut, u16 rss_table_size, u16 rss_size);
Dice_lib.c702 vsi->rss_size = 1; in ice_vsi_set_rss_params()
711 vsi->rss_size = min_t(u16, num_online_cpus(), in ice_vsi_set_rss_params()
720 vsi->rss_size = ICE_MAX_RSS_QS_PER_VF; in ice_vsi_set_rss_params()
1360 vsi->rss_size); in ice_vsi_manage_rss_lut()
1379 vsi->rss_size = min_t(u16, vsi->rss_size, vsi->num_rxq); in ice_vsi_cfg_rss_lut_key()
1388 ice_fill_rss_lut(lut, vsi->rss_table_size, vsi->rss_size); in ice_vsi_cfg_rss_lut_key()
Dice_ethtool.c2661 cmd->data = vsi->rss_size; in ice_get_rxnfc()
3227 vsi->rss_size); in ice_set_rxfh()
3370 vsi->rss_size = 1; in ice_vsi_set_dflt_rss_lut()
3372 vsi->rss_size = ice_get_valid_rss_size(hw, req_rss_size); in ice_vsi_set_dflt_rss_lut()
3375 ice_fill_rss_lut(lut, vsi->rss_table_size, vsi->rss_size); in ice_vsi_set_dflt_rss_lut()
3466 vsi->rss_size = ice_get_valid_rss_size(&pf->hw, new_rx); in ice_set_channels()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c304 const int index = rss->rss_size * ctx_id; in otx2_set_rss_table()
313 for (idx = 0; idx < rss->rss_size; idx++) { in otx2_set_rss_table()
372 rss->rss_size = sizeof(*rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]); in otx2_rss_init()
381 rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP] = kzalloc(rss->rss_size, in otx2_rss_init()
387 for (idx = 0; idx < rss->rss_size; idx++) in otx2_rss_init()
Dotx2_ethtool.c791 for (idx = 0; idx < rss->rss_size; idx++) in otx2_set_rxfh_context()
829 for (idx = 0; idx < rss->rss_size; idx++) in otx2_get_rxfh_context()
Dotx2_common.h68 u16 rss_size; member
/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h98 u16 rss_size; /* size of VI's RSS table slice */ member
/drivers/net/ethernet/intel/i40e/
Di40e_main.c1879 if (!vsi->rss_size) in i40e_vsi_config_rss()
1880 vsi->rss_size = min_t(int, pf->alloc_rss_size, in i40e_vsi_config_rss()
1882 if (!vsi->rss_size) in i40e_vsi_config_rss()
1894 i40e_fill_rss_lut(pf, lut, vsi->rss_table_size, vsi->rss_size); in i40e_vsi_config_rss()
1968 vsi->rss_size = max_qcount; in i40e_vsi_setup_queue_map_mqprio()
5721 vsi->rss_size = min_t(int, pf->alloc_rss_size, in i40e_update_adq_vsi_queues()
5834 vsi->rss_size = min_t(int, vsi->back->alloc_rss_size, in i40e_vsi_config_tc()
6138 static int i40e_vsi_reconfig_rss(struct i40e_vsi *vsi, u16 rss_size) in i40e_vsi_reconfig_rss() argument
6147 if (!vsi->rss_size) in i40e_vsi_reconfig_rss()
6150 if (rss_size > vsi->rss_size) in i40e_vsi_reconfig_rss()
[all …]
Di40e.h872 u16 rss_size; /* Allocated RSS queues */ member
1116 u16 rss_table_size, u16 rss_size);
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c827 u16 rss_size, u16 viid) in cxgb4_config_rss() argument
832 ret = t4_config_rss_range(adap, adap->mbox, viid, 0, rss_size, rss, in cxgb4_config_rss()
833 rss_size); in cxgb4_config_rss()
868 rss = kmalloc_array(pi->rss_size, sizeof(u16), GFP_KERNEL); in cxgb4_write_rss()
873 for (i = 0; i < pi->rss_size; i++, queues++) in cxgb4_write_rss()
876 err = cxgb4_config_rss(pi, rss, pi->rss_size, pi->viid); in cxgb4_write_rss()
895 for (j = 0; j < pi->rss_size; j++) in setup_rss()
1392 rss = kcalloc(pi->rss_size, sizeof(u16), GFP_KERNEL); in cxgb4_port_mirror_alloc_queues()
1399 for (i = 0; i < pi->rss_size; i++) in cxgb4_port_mirror_alloc_queues()
1402 ret = cxgb4_config_rss(pi, rss, pi->rss_size, pi->viid_mirror); in cxgb4_port_mirror_alloc_queues()
[all …]
Dcxgb4_ethtool.c1584 return pi->rss_size; in get_rss_table_size()
1590 unsigned int n = pi->rss_size; in get_rss_table()
1618 for (i = 0; i < pi->rss_size; i++) in set_rss_table()
Dt4_hw.c7622 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()
Dcxgb4.h657 u16 rss_size; /* size of VI's RSS table slice */ member
1999 unsigned int *rss_size, u8 *vivld, u8 *vin);
/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h765 u16 rss_size; /* Allocated RSS queues */ member
Dhns3_enet.c650 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()
4986 dev_info(priv->dev, "RSS size: %u\n", kinfo->rss_size); in hns3_info_show()
5603 if (kinfo->rss_size == new_tqp_num) in hns3_set_channels()
Dhns3_debugfs.c904 kinfo->rss_size); in hns3_dbg_dev_specs()

12