Home
last modified time | relevance | path

Searched refs:rss_indir (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c3369 u32 *rss_indir; in hclgevf_set_channels() local
3384 rss_indir = kcalloc(HCLGEVF_RSS_IND_TBL_SIZE, sizeof(u32), GFP_KERNEL); in hclgevf_set_channels()
3385 if (!rss_indir) in hclgevf_set_channels()
3389 rss_indir[i] = i % kinfo->rss_size; in hclgevf_set_channels()
3393 ret = hclgevf_set_rss(handle, rss_indir, NULL, 0); in hclgevf_set_channels()
3398 kfree(rss_indir); in hclgevf_set_channels()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c4583 u8 *rss_indir = vport[0].rss_indirection_tbl; in hclge_rss_init_hw() local
4594 ret = hclge_set_rss_indir_table(hdev, rss_indir); in hclge_rss_init_hw()
10642 u32 *rss_indir; in hclge_set_channels() local
10676 rss_indir = kcalloc(HCLGE_RSS_IND_TBL_SIZE, sizeof(u32), GFP_KERNEL); in hclge_set_channels()
10677 if (!rss_indir) in hclge_set_channels()
10681 rss_indir[i] = i % kinfo->rss_size; in hclge_set_channels()
10683 ret = hclge_set_rss(handle, rss_indir, NULL, 0); in hclge_set_channels()
10688 kfree(rss_indir); in hclge_set_channels()