Lines Matching refs:kinfo

317 	struct hnae3_knic_private_info *kinfo;  in hclgevf_knic_setup()  local
322 kinfo = &nic->kinfo; in hclgevf_knic_setup()
323 kinfo->num_tx_desc = hdev->num_tx_desc; in hclgevf_knic_setup()
324 kinfo->num_rx_desc = hdev->num_rx_desc; in hclgevf_knic_setup()
325 kinfo->rx_buf_len = hdev->rx_buf_len; in hclgevf_knic_setup()
331 kinfo->tc_info.num_tc = num_tc; in hclgevf_knic_setup()
332 kinfo->rss_size = min_t(u16, hdev->rss_size_max, new_tqps / num_tc); in hclgevf_knic_setup()
333 new_tqps = kinfo->rss_size * num_tc; in hclgevf_knic_setup()
334 kinfo->num_tqps = min(new_tqps, hdev->num_tqps); in hclgevf_knic_setup()
336 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup()
338 if (!kinfo->tqp) in hclgevf_knic_setup()
341 for (i = 0; i < kinfo->num_tqps; i++) { in hclgevf_knic_setup()
344 kinfo->tqp[i] = &hdev->htqp[i].q; in hclgevf_knic_setup()
350 kinfo->num_tqps = min_t(u16, hdev->num_nic_msix - 1, kinfo->num_tqps); in hclgevf_knic_setup()
351 kinfo->rss_size = min_t(u16, kinfo->num_tqps / num_tc, in hclgevf_knic_setup()
352 kinfo->rss_size); in hclgevf_knic_setup()
417 nic->kinfo.io_base = hdev->hw.hw.io_base; in hclgevf_set_handle_info()
807 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclgevf_tqp_enable()
1294 for (i = 1; i < handle->kinfo.num_tqps; i++) { in hclgevf_reset_tqp()
2079 roce->rinfo.netdev = nic->kinfo.netdev; in hclgevf_init_roce_base_info()
3022 struct hnae3_knic_private_info *kinfo = &nic->kinfo; in hclgevf_get_max_channels() local
3025 hdev->num_tqps / kinfo->tc_info.num_tc); in hclgevf_get_max_channels()
3046 ch->combined_count = handle->kinfo.rss_size; in hclgevf_get_channels()
3061 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclgevf_update_rss_size() local
3065 kinfo->req_rss_size = new_tqps_num; in hclgevf_update_rss_size()
3068 hdev->num_tqps / kinfo->tc_info.num_tc); in hclgevf_update_rss_size()
3073 if (kinfo->req_rss_size != kinfo->rss_size && kinfo->req_rss_size && in hclgevf_update_rss_size()
3074 kinfo->req_rss_size <= max_rss_size) in hclgevf_update_rss_size()
3075 kinfo->rss_size = kinfo->req_rss_size; in hclgevf_update_rss_size()
3076 else if (kinfo->rss_size > max_rss_size || in hclgevf_update_rss_size()
3077 (!kinfo->req_rss_size && kinfo->rss_size < max_rss_size)) in hclgevf_update_rss_size()
3078 kinfo->rss_size = max_rss_size; in hclgevf_update_rss_size()
3080 kinfo->num_tqps = kinfo->tc_info.num_tc * kinfo->rss_size; in hclgevf_update_rss_size()
3087 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclgevf_set_channels() local
3091 u16 cur_rss_size = kinfo->rss_size; in hclgevf_set_channels()
3092 u16 cur_tqps = kinfo->num_tqps; in hclgevf_set_channels()
3099 hclge_comm_get_rss_tc_info(kinfo->rss_size, hdev->hw_tc_map, in hclgevf_set_channels()
3117 rss_indir[i] = i % kinfo->rss_size; in hclgevf_set_channels()
3119 hdev->rss_cfg.rss_size = kinfo->rss_size; in hclgevf_set_channels()
3132 cur_rss_size, kinfo->rss_size, in hclgevf_set_channels()
3133 cur_tqps, kinfo->rss_size * kinfo->tc_info.num_tc); in hclgevf_set_channels()