Home
last modified time | relevance | path

Searched refs:max_vfs (Results 1 – 25 of 56) sorted by relevance

123

/dpdk/drivers/net/bnxt/
H A Drte_pmd_bnxt.c203 if (vf >= bp->pf->max_vfs) in rte_pmd_bnxt_set_vf_rate_limit()
264 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_mac_anti_spoof()
323 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_anti_spoof()
374 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_stripq()
421 if (vf >= bp->pdev->max_vfs) in rte_pmd_bnxt_set_vf_rxmode()
465 if (vf >= bp->pdev->max_vfs) in bnxt_set_vf_table()
609 if (vf_id >= dev_info.max_vfs) in rte_pmd_bnxt_get_vf_stats()
645 if (vf_id >= dev_info.max_vfs) in rte_pmd_bnxt_reset_vf_stats()
679 if (vf_id >= dev_info.max_vfs) in rte_pmd_bnxt_get_vf_rx_status()
836 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_insert()
[all …]
H A Dbnxt_filter.c84 for (i = 0; i < bp->pf->max_vfs; i++) { in bnxt_free_all_filters()
153 for (i = 0; i < bp->pf->max_vfs; i++) { in bnxt_free_filter_mem()
H A Dbnxt.h240 #define BNXT_MAX_VFS(bp) ((bp)->pf->max_vfs)
254 uint16_t max_vfs; member
H A Dbnxt_hwrm.c805 for (i = 0; i < bp->pf->max_vfs; i++) { in bnxt_free_vf_info()
815 static int bnxt_alloc_vf_info(struct bnxt *bp, uint16_t max_vfs) in bnxt_alloc_vf_info() argument
823 vf_info = rte_zmalloc("bnxt_vf_info", sizeof(*vf_info) * max_vfs, 0); in bnxt_alloc_vf_info()
829 bp->pf->max_vfs = max_vfs; in bnxt_alloc_vf_info()
830 for (i = 0; i < max_vfs; i++) { in bnxt_alloc_vf_info()
880 bp->pf->total_vfs = rte_le_to_cpu_16(resp->max_vfs); in __bnxt_hwrm_func_qcaps()
881 new_max_vfs = bp->pdev->max_vfs; in __bnxt_hwrm_func_qcaps()
882 if (new_max_vfs != bp->pf->max_vfs) { in __bnxt_hwrm_func_qcaps()
903 if (!BNXT_CHIP_P5(bp) && !bp->pdev->max_vfs) in __bnxt_hwrm_func_qcaps()
1212 if (!BNXT_CHIP_P5(bp) && !bp->pdev->max_vfs) in bnxt_hwrm_func_resc_qcaps()
[all …]
/dpdk/doc/guides/howto/
H A Dlm_virtio_vhost_user.rst266 cat /sys/bus/pci/devices/0000\:02\:00.0/max_vfs
267 echo 0 > /sys/bus/pci/devices/0000\:02\:00.0/max_vfs
268 cat /sys/bus/pci/devices/0000\:02\:00.0/max_vfs
271 cat /sys/bus/pci/devices/0000\:09\:00.0/max_vfs
272 echo 0 > /sys/bus/pci/devices/0000\:09\:00.0/max_vfs
273 cat /sys/bus/pci/devices/0000\:09\:00.0/max_vfs
342 cat /sys/bus/pci/devices/0000\:06\:00.0/max_vfs
343 echo 0 > /sys/bus/pci/devices/0000\:06\:00.0/max_vfs
344 cat /sys/bus/pci/devices/0000\:06\:00.0/max_vfs
347 cat /sys/bus/pci/devices/0000\:03\:00.0/max_vfs
[all …]
/dpdk/drivers/bus/pci/linux/
H A Dpci.c274 dev->max_vfs = 0; in pci_scan_one()
278 dev->max_vfs = (uint16_t)tmp; in pci_scan_one()
285 dev->max_vfs = (uint16_t)tmp; in pci_scan_one()
350 dev2->max_vfs = dev->max_vfs; in pci_scan_one()
365 dev2->max_vfs != dev->max_vfs || in pci_scan_one()
/dpdk/drivers/net/ixgbe/
H A Drte_pmd_ixgbe.c31 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_mac_addr()
65 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_ping_vf()
96 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_vlan_anti_spoof()
126 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_mac_anti_spoof()
155 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_vlan_insert()
252 if ((vf >= pci_dev->max_vfs) || (vf > 63)) in rte_pmd_ixgbe_set_vf_split_drop_en()
288 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_vlan_stripq()
335 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_rxmode()
382 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_rx()
433 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_tx()
H A Dixgbe_vf_representor.c195 if (representor->vf_id >= pci_dev->max_vfs) in ixgbe_vf_representor_init()
/dpdk/doc/guides/nics/
H A Dintel_vf.rst115 insmod fm0k.ko max_vfs=2,2 (To enable two Virtual Functions per port)
146 insmod i40e.ko max_vfs=2,2 (To enable two Virtual Functions per port)
196 insmod ixgbe max_vfs=2,2 (To enable two Virtual Functions per port)
220 * If the max number of VFs (max_vfs) is set in the range of 1 to 32:
228 * If the max number of VFs (max_vfs) is in the range of 33 to 64:
282 insmod igb max_vfs=2,2 (To enable two Virtual Functions per port)
405 modprobe ixgbe max_vfs=2,2
414 echo 2 > /sys/bus/pci/devices/0000\:02\:00.0/max_vfs
415 echo 2 > /sys/bus/pci/devices/0000\:02\:00.1/max_vfs
416 echo 2 > /sys/bus/pci/devices/0000\:0e\:00.0/max_vfs
[all …]
/dpdk/drivers/bus/pci/windows/
H A Dpci.c382 dev->max_vfs = 0; /* TODO: get max_vfs */ in pci_scan_one()
409 dev2->max_vfs = dev->max_vfs; in pci_scan_one()
/dpdk/drivers/common/cnxk/
H A Droc_dev.c978 vf_mbase = mbox_mem_map(pa, MBOX_SIZE * pci_dev->max_vfs); in dev_vf_mbase_get()
990 if (!vf_mbase || !pci_dev->max_vfs || !roc_model_is_cn9k()) in dev_vf_mbase_put()
993 mbox_mem_unmap((void *)vf_mbase, MBOX_SIZE * pci_dev->max_vfs); in dev_vf_mbase_put()
1126 dev->maxvf = pci_dev->max_vfs; in dev_init()
1179 if (pci_dev->max_vfs > 0) { in dev_init()
1188 pci_dev->max_vfs, intr_offset); in dev_init()
1194 MBOX_DIR_PFVF_UP, pci_dev->max_vfs, intr_offset); in dev_init()
/dpdk/drivers/bus/pci/bsd/
H A Dpci.c249 dev->max_vfs = 0; in pci_scan_one()
304 dev2->max_vfs = dev->max_vfs; in pci_scan_one()
/dpdk/drivers/net/sfc/
H A Dsfc_sriov.c55 sriov->num_vfs = pci_dev->max_vfs; in sfc_sriov_attach()
/dpdk/drivers/bus/pci/
H A Drte_bus_pci.h74 uint16_t max_vfs; /**< sriov enable if not zero */ member
/dpdk/drivers/net/failsafe/
H A Dfailsafe_ops.c1104 info->max_vfs = RTE_MIN(info->max_vfs, sinfo->max_vfs); in fs_dev_merge_info()
1172 infos->max_vfs = UINT16_MAX; in fs_dev_infos_get()
/dpdk/drivers/net/enic/
H A Denic_vf_representor.c658 if (vf->vf_id >= pdev->max_vfs) { in enic_vf_representor_init()
660 vf->vf_id, pdev->max_vfs); in enic_vf_representor_init()
/dpdk/doc/guides/bbdevs/
H A Dacc100.rst143 enable to ``max_vfs`` file..
147 echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs
H A Dfpga_5gnr_fec.rst128 enable to ``max_vfs`` file..
132 echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs
H A Dfpga_lte_fec.rst127 enable to ``max_vfs`` file..
131 echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs
/dpdk/examples/ethtool/lib/
H A Drte_ethtool.c395 num_vfs = dev_info.max_vfs; in rte_ethtool_net_set_rx_mode()
/dpdk/drivers/net/cnxk/
H A Dcnxk_ethdev_ops.c22 devinfo->max_vfs = pci_dev->max_vfs; in cnxk_nix_info_get()
/dpdk/drivers/net/txgbe/
H A Dtxgbe_ethdev_vf.c488 dev_info->max_vfs = pci_dev->max_vfs; in txgbevf_dev_info_get()
H A Dtxgbe_ethdev.c1342 pci_dev->max_vfs * RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool; in txgbe_check_vf_rss_rxq_num()
1551 if (vf >= pci_dev->max_vfs) in txgbe_set_vf_rate_limit()
1570 for (vf_idx = 0; vf_idx < pci_dev->max_vfs; vf_idx++) { in txgbe_set_vf_rate_limit()
1716 for (vf = 0; vf < pci_dev->max_vfs; vf++) in txgbe_dev_start()
1878 for (vf = 0; vfinfo != NULL && vf < pci_dev->max_vfs; vf++) in txgbe_dev_stop()
2596 dev_info->max_vfs = pci_dev->max_vfs; in txgbe_dev_info_get()
3447 txgbe_add_rar(dev, addr, 0, pci_dev->max_vfs); in txgbe_set_default_mac_addr()
/dpdk/drivers/net/e1000/
H A Digb_pf.c34 return pci_dev->max_vfs; in dev_num_vf()
/dpdk/drivers/net/ngbe/
H A Dngbe_ethdev.c1165 for (vf = 0; vfinfo != NULL && vf < pci_dev->max_vfs; vf++) in ngbe_dev_stop()
1761 dev_info->max_vfs = pci_dev->max_vfs; in ngbe_dev_info_get()
2451 ngbe_add_rar(dev, addr, 0, pci_dev->max_vfs); in ngbe_set_default_mac_addr()

123