Home
last modified time | relevance | path

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

12

/f-stack/dpdk/drivers/net/sfc/
H A Dsfc_sriov.c55 sriov->num_vfs = pci_dev->max_vfs; in sfc_sriov_attach()
56 if (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()
113 if (sriov->num_vfs == 0) { in sfc_sriov_vswitch_create()
129 rc = efx_evb_vswitch_create(sa->nic, sriov->num_vfs + 1, in sfc_sriov_vswitch_create()
155 if (sriov->num_vfs == 0) in sfc_sriov_vswitch_destroy()
H A Dsfc_sriov.h21 unsigned int num_vfs; member
/f-stack/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
/f-stack/dpdk/drivers/net/ice/
H A Dice_dcf_parent.c72 ice_dcf_update_vf_vsi_map(struct ice_hw *hw, uint16_t num_vfs, in ice_dcf_update_vf_vsi_map() argument
77 for (vf_id = 0; vf_id < num_vfs; vf_id++) in ice_dcf_update_vf_vsi_map()
124 hw->num_vfs, hw->vf_vsi_map); in ice_dcf_vsi_update_service_handler()
400 parent_adapter->pf.main_vsi->idx = hw->num_vfs; in ice_dcf_init_parent_adapter()
404 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.c297 valid_msg_len = (vsi_map->num_vfs - 1) * sizeof(vsi_map->vf_vsi[0]) + in ice_dcf_get_vf_vsi_map()
305 if (hw->num_vfs != 0 && hw->num_vfs != vsi_map->num_vfs) { in ice_dcf_get_vf_vsi_map()
307 vsi_map->num_vfs, hw->num_vfs); in ice_dcf_get_vf_vsi_map()
311 len = vsi_map->num_vfs * sizeof(vsi_map->vf_vsi[0]); in ice_dcf_get_vf_vsi_map()
320 hw->num_vfs = vsi_map->num_vfs; in ice_dcf_get_vf_vsi_map()
H A Dice_dcf.h44 uint16_t num_vfs; member
/f-stack/dpdk/drivers/net/bnxt/
H A Dbnxt_hwrm.c3369 int num_vfs) in bnxt_fill_vf_func_cfg_req_new() argument
3372 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_new()
3377 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_new()
3389 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_new()
3398 int num_vfs) in bnxt_fill_vf_func_cfg_req_old() argument
3416 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_old()
3419 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_old()
3426 (num_vfs + 1)); in bnxt_fill_vf_func_cfg_req_old()
3506 int num_vfs) in bnxt_calculate_pf_resources() argument
3508 if (!num_vfs) { in bnxt_calculate_pf_resources()
[all …]
H A Dbnxt_hwrm.h140 int bnxt_hwrm_func_buf_rgtr(struct bnxt *bp, int num_vfs);
210 int bnxt_hwrm_allocate_vfs(struct bnxt *bp, int num_vfs);
/f-stack/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()
/f-stack/freebsd/net/
H A Difdi_if.m119 null_iov_init(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused)
125 null_vf_add(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused)
366 uint16_t num_vfs;
376 uint16_t num_vfs;
/f-stack/dpdk/drivers/net/qede/
H A Dqede_if.h85 void (*sriov_configure)(struct ecore_dev *edev, int num_vfs);
/f-stack/dpdk/drivers/raw/octeontx2_ep/
H A Dotx2_ep_rawdev.h430 uint32_t num_vfs; member
/f-stack/dpdk/doc/guides/cryptodevs/
H A Docteontx.rst87 echo <num_vfs> > /sys/bus/pci/devices/<dev_bus_id>/sriov_numvfs
/f-stack/dpdk/doc/guides/rawdevs/
H A Docteontx2_ep.rst30 echo <num_vfs> > /sys/bus/pci/drivers/octeontx2-ep/0000\:04\:00.0/sriov_numvfs
H A Docteontx2_dma.rst49 echo <num_vfs> > /sys/bus/pci/drivers/octeontx2-dpi/0000\:05\:00.0/sriov_numvfs
/f-stack/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()
/f-stack/dpdk/drivers/net/liquidio/
H A Dlio_struct.h454 uint32_t num_vfs; member
/f-stack/dpdk/drivers/common/iavf/
H A Dvirtchnl.h727 u16 num_vfs; /* The actual number of VFs allocated */ member
/f-stack/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()
3922 p->num_vfs = number; in i40e_parse_discover_capabilities()
3926 p->num_vfs); in i40e_parse_discover_capabilities()
/f-stack/dpdk/doc/guides/nics/
H A Dmlx4.rst110 - **num_vfs** (integer or triplet, optionally prefixed by device address

12