Searched refs:num_vport (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 1582 u16 i, num_vport; in hclge_map_tqp() local 1584 num_vport = hdev->num_vmdq_vport + hdev->num_req_vfs + 1; in hclge_map_tqp() 1585 for (i = 0; i < num_vport; i++) { in hclge_map_tqp() 1622 int num_vport, i; in hclge_alloc_vport() local 1626 num_vport = hdev->num_vmdq_vport + hdev->num_req_vfs + 1; in hclge_alloc_vport() 1628 if (hdev->num_tqps < num_vport) { in hclge_alloc_vport() 1630 hdev->num_tqps, num_vport); in hclge_alloc_vport() 1635 tqp_per_vport = hdev->num_tqps / num_vport; in hclge_alloc_vport() 1636 tqp_main_vport = tqp_per_vport + hdev->num_tqps % num_vport; in hclge_alloc_vport() 1638 vport = devm_kcalloc(&pdev->dev, num_vport, sizeof(struct hclge_vport), in hclge_alloc_vport() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch_offloads.c | 2360 int err, vport, num_vport; in mlx5_devlink_eswitch_inline_mode_set() local 2402 num_vport = --vport; in mlx5_devlink_eswitch_inline_mode_set() 2403 mlx5_esw_for_each_host_func_vport_reverse(esw, vport, num_vport) in mlx5_devlink_eswitch_inline_mode_set()
|