Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c1783 u16 i, num_vport; in hclge_map_tqp() local
1785 num_vport = hdev->num_req_vfs + 1; in hclge_map_tqp()
1786 for (i = 0; i < num_vport; i++) { in hclge_map_tqp()
1825 int num_vport, i; in hclge_alloc_vport() local
1829 num_vport = hdev->num_req_vfs + 1; in hclge_alloc_vport()
1831 if (hdev->num_tqps < num_vport) { in hclge_alloc_vport()
1833 hdev->num_tqps, num_vport); in hclge_alloc_vport()
1838 tqp_per_vport = hdev->num_tqps / num_vport; in hclge_alloc_vport()
1839 tqp_main_vport = tqp_per_vport + hdev->num_tqps % num_vport; in hclge_alloc_vport()
1841 vport = devm_kcalloc(&pdev->dev, num_vport, sizeof(struct hclge_vport), in hclge_alloc_vport()
[all …]