Home
last modified time | relevance | path

Searched refs:num_vfs (Results 1 – 25 of 33) sorted by relevance

12

/dpdk/drivers/net/sfc/
H A Dsfc_sriov.c55 sriov->num_vfs = pci_dev->max_vfs; in sfc_sriov_attach()
56 if (sa->switchdev || sriov->num_vfs == 0) in sfc_sriov_attach()
59 vport_config = calloc(sriov->num_vfs + 1, sizeof(*vport_config)); in sfc_sriov_attach()
69 for (i = 1; i <= sriov->num_vfs; ++i) { in sfc_sriov_attach()
86 sriov->num_vfs = 0; in sfc_sriov_attach()
99 sriov->num_vfs = 0; in sfc_sriov_detach()
118 if (sriov->num_vfs == 0) { in sfc_sriov_vswitch_create()
134 rc = efx_evb_vswitch_create(sa->nic, sriov->num_vfs + 1, in sfc_sriov_vswitch_create()
160 if (sa->switchdev || sriov->num_vfs == 0) in sfc_sriov_vswitch_destroy()
H A Dsfc_sriov.h21 unsigned int num_vfs; member
/dpdk/drivers/net/fm10k/base/
H A Dfm10k_pf.c477 if (!hw->iov.num_vfs) in fm10k_update_int_moderator_pf()
621 u16 num_vfs = hw->iov.num_vfs; in fm10k_vf_queue_index() local
667 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
671 hw->iov.num_vfs = num_vfs; in fm10k_iov_assign_resources_pf()
684 for (i = 0; i < num_vfs; i++) { in fm10k_iov_assign_resources_pf()
722 for (i = 0; i < num_vfs; i++) { in fm10k_iov_assign_resources_pf()
777 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_configure_tc_pf()
835 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_assign_int_moderator_pf()
849 if (vf_idx == (hw->iov.num_vfs - 1)) in fm10k_iov_assign_int_moderator_pf()
989 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_reset_resources_pf()
[all …]
H A Dfm10k_type.h700 u16 num_vfs; member
/dpdk/drivers/net/bnxt/
H A Dbnxt_hwrm.c3529 int num_vfs) in bnxt_fill_vf_func_cfg_req_new() argument
3532 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_new()
3537 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_new()
3548 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_new()
3556 int num_vfs) in bnxt_fill_vf_func_cfg_req_old() argument
3574 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_old()
3577 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_old()
3584 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_old()
3697 int num_vfs) in bnxt_calculate_pf_resources() argument
3699 if (!num_vfs) { in bnxt_calculate_pf_resources()
[all …]
H A Dbnxt_hwrm.h162 int bnxt_hwrm_func_buf_rgtr(struct bnxt *bp, int num_vfs);
225 int bnxt_hwrm_allocate_vfs(struct bnxt *bp, int num_vfs);
/dpdk/drivers/net/ice/
H A Dice_dcf.c299 valid_msg_len = (vsi_map->num_vfs - 1) * sizeof(vsi_map->vf_vsi[0]) + in ice_dcf_get_vf_vsi_map()
307 if (hw->num_vfs != 0 && hw->num_vfs != vsi_map->num_vfs) { in ice_dcf_get_vf_vsi_map()
309 vsi_map->num_vfs, hw->num_vfs); in ice_dcf_get_vf_vsi_map()
313 len = vsi_map->num_vfs * sizeof(vsi_map->vf_vsi[0]); in ice_dcf_get_vf_vsi_map()
322 hw->num_vfs = vsi_map->num_vfs; in ice_dcf_get_vf_vsi_map()
690 size = sizeof(struct virtchnl_dcf_bw_cfg_list *) * hw->num_vfs; in ice_dcf_init_hw()
H A Dice_dcf_parent.c79 ice_dcf_update_vf_vsi_map(struct ice_hw *hw, uint16_t num_vfs, in ice_dcf_update_vf_vsi_map() argument
84 for (vf_id = 0; vf_id < num_vfs; vf_id++) in ice_dcf_update_vf_vsi_map()
136 hw->num_vfs, hw->vf_vsi_map); in ice_dcf_vsi_update_service_handler()
463 parent_adapter->pf.main_vsi->idx = hw->num_vfs; in ice_dcf_init_parent_adapter()
467 ice_dcf_update_vf_vsi_map(parent_hw, hw->num_vfs, hw->vf_vsi_map); in ice_dcf_init_parent_adapter()
H A Dice_dcf_sched.c177 if (node_id >= 8 * hw->num_vfs) { in ice_dcf_node_param_check()
350 if (parent_node->reference_count >= hw->num_vfs) { in ice_dcf_node_add()
356 if (node_id > (uint32_t)(tc_nb * hw->num_vfs)) { in ice_dcf_node_add()
657 if (tm_node->reference_count != hw->num_vfs) { in ice_dcf_commit_check()
726 for (vf_id = 0; vf_id < hw->num_vfs; vf_id++) { in ice_dcf_clear_bw()
800 for (vf_id = 1; vf_id < hw->num_vfs; vf_id++) { in ice_dcf_hierarchy_commit()
806 if (tm_node->id - hw->num_vfs * tm_node->tc != vf_id) in ice_dcf_hierarchy_commit()
H A Dice_dcf.h110 uint16_t num_vfs; member
H A Dice_dcf_ethdev.c1447 dcf_adapter->real_hw.num_vfs, in ice_dcf_init_repr_info()
1848 if (eth_da.nb_representor_ports > dcf_adapter->real_hw.num_vfs || in eth_ice_dcf_pci_probe()
1865 if (vf_id >= dcf_adapter->real_hw.num_vfs) { in eth_ice_dcf_pci_probe()
1867 vf_id, dcf_adapter->real_hw.num_vfs - 1); in eth_ice_dcf_pci_probe()
H A Dice_dcf_vf_representor.c480 for (vf_id = 0; vf_id < dcf_adapter->real_hw.num_vfs; vf_id++) { in ice_dcf_vf_repr_stop_all()
/dpdk/examples/ethtool/lib/
H A Drte_ethtool.c386 uint16_t num_vfs; in rte_ethtool_net_set_rx_mode() local
395 num_vfs = dev_info.max_vfs; in rte_ethtool_net_set_rx_mode()
398 for (vf = 0; vf < num_vfs; vf++) { in rte_ethtool_net_set_rx_mode()
/dpdk/drivers/net/qede/
H A Dqede_if.h85 void (*sriov_configure)(struct ecore_dev *edev, int num_vfs);
/dpdk/drivers/net/qede/base/
H A Decore_sriov.c429 &iov->num_vfs); in ecore_iov_pci_cfg_info()
430 if (iov->num_vfs) { in ecore_iov_pci_cfg_info()
437 iov->num_vfs = 0; in ecore_iov_pci_cfg_info()
465 if (iov->num_vfs > NUM_OF_VFS(p_dev) || in ecore_iov_pci_cfg_info()
474 iov->num_vfs); in ecore_iov_pci_cfg_info()
476 iov->num_vfs = 0; in ecore_iov_pci_cfg_info()
545 u16 num_vfs = 0; in ecore_iov_allocate_vfdb() local
547 num_vfs = p_hwfn->p_dev->p_iov_info->total_vfs; in ecore_iov_allocate_vfdb()
571 num_vfs; in ecore_iov_allocate_vfdb()
1248 p_hwfn->p_dev->p_iov_info->num_vfs++; in ecore_iov_init_hw_for_vf()
[all …]
H A Decore_iov_api.h165 u16 num_vfs; /* number of vfs that have been started */ member
H A Decore_hsi_debug_tools.h1043 u8 num_vfs /* Number of VFs in the chip */; member
H A Decore_dev.c1734 u16 num_pf_rls, num_vfs = ecore_init_qm_get_num_vfs(p_hwfn); in ecore_init_qm_get_num_pf_rls() local
1745 if (num_pf_rls < num_vfs + NUM_DEFAULT_RLS) { in ecore_init_qm_get_num_pf_rls()
1748 " [num_pf_rls %d num_vfs %d]\n", num_pf_rls, num_vfs); in ecore_init_qm_get_num_pf_rls()
1753 num_pf_rls -= num_vfs + NUM_DEFAULT_RLS; in ecore_init_qm_get_num_pf_rls()
2110 u16 vf_idx, num_vfs = ecore_init_qm_get_num_vfs(p_hwfn); in ecore_init_qm_vf_pqs() local
2117 qm_info->num_vf_pqs = num_vfs; in ecore_init_qm_vf_pqs()
2118 for (vf_idx = 0; vf_idx < num_vfs; vf_idx++) in ecore_init_qm_vf_pqs()
H A Decore_sp_commands.c399 p_ramrod->num_vfs = (u8)p_iov->total_vfs; in ecore_sp_pf_start()
/dpdk/drivers/net/octeontx_ep/
H A Dotx_ep_common.h387 uint32_t num_vfs; member
/dpdk/doc/guides/cryptodevs/
H A Docteontx.rst87 echo <num_vfs> > /sys/bus/pci/devices/<dev_bus_id>/sriov_numvfs
/dpdk/drivers/net/liquidio/
H A Dlio_struct.h454 uint32_t num_vfs; member
/dpdk/drivers/common/iavf/
H A Dvirtchnl.h1337 u16 num_vfs; /* The actual number of VFs allocated */ member
/dpdk/drivers/net/i40e/base/
H A Di40e_common.c1445 u32 num_vfs; in i40e_clear_hw() local
1473 num_vfs = (j - i) + 1; in i40e_clear_hw()
1475 num_vfs = 0; in i40e_clear_hw()
1489 for (i = 0; i < num_vfs; i++) in i40e_clear_hw()
4035 p->num_vfs = number; in i40e_parse_discover_capabilities()
4039 p->num_vfs); in i40e_parse_discover_capabilities()
/dpdk/doc/guides/nics/
H A Dmlx4.rst110 - **num_vfs** (integer or triplet, optionally prefixed by device address

12