Home
last modified time | relevance | path

Searched refs:vf (Results 1 – 25 of 182) sorted by relevance

12345678

/dpdk/drivers/net/enic/
H A Denic_vf_representor.c59 pf = vf->pf; in enic_vf_dev_tx_queue_setup()
101 pf = vf->pf; in enic_vf_dev_rx_queue_setup()
171 pf = vf->pf; in enic_vf_dev_start()
491 1 /* bcast */, vf->promisc, vf->allmulti); in set_vf_packet_filter()
631 vf->pf_wq_idx = vf_wq_idx(vf); in enic_vf_representor_init()
632 vf->pf_wq_cq_idx = vf_wq_cq_idx(vf); in enic_vf_representor_init()
633 vf->pf_rq_sop_idx = vf_rq_sop_idx(vf); in enic_vf_representor_init()
634 vf->pf_rq_data_idx = vf_rq_data_idx(vf); in enic_vf_representor_init()
647 vf->vf_id, vf->pf_wq_idx, vf->pf_rq_sop_idx, vf->pf_rq_data_idx, in enic_vf_representor_init()
682 vf->enic.vdev = vnic_vf_rep_register(&vf->enic, pf->vdev, vf->vf_id); in enic_vf_representor_init()
[all …]
H A Denic.h329 static inline unsigned int vf_wq_cq_idx(struct enic_vf_representor *vf) in vf_wq_cq_idx() argument
332 return vf->pf->conf_rq_count - (vf->pf->max_vf_id + vf->vf_id + 2); in vf_wq_cq_idx()
335 static inline unsigned int vf_wq_idx(struct enic_vf_representor *vf) in vf_wq_idx() argument
337 return vf->pf->conf_wq_count - vf->vf_id - 1; in vf_wq_idx()
340 static inline unsigned int vf_rq_sop_idx(struct enic_vf_representor *vf) in vf_rq_sop_idx() argument
342 return vf->pf->conf_rq_count - vf->vf_id - 1; in vf_rq_sop_idx()
345 static inline unsigned int vf_rq_data_idx(struct enic_vf_representor *vf) in vf_rq_data_idx() argument
347 return vf->pf->conf_rq_count - (vf->pf->max_vf_id + vf->vf_id + 2); in vf_rq_data_idx()
443 int enic_fm_add_rep2vf_flow(struct enic_vf_representor *vf);
444 int enic_fm_add_vf2rep_flow(struct enic_vf_representor *vf);
/dpdk/drivers/common/cnxk/
H A Droc_ree.c51 mbox = vf->dev->mbox; in roc_ree_queues_attach()
78 mbox = vf->dev->mbox; in roc_ree_queues_detach()
90 vf->nb_queues = 0; in roc_ree_queues_detach()
103 mbox = vf->dev->mbox; in roc_ree_msix_offsets_get()
461 roc_ree_lf_err_intr_unregister(vf, vf->lf_msixoff[i], base); in roc_ree_err_intr_unregister()
506 ret = roc_ree_lf_err_intr_register(vf, vf->lf_msixoff[i], base); in roc_ree_err_intr_register()
518 roc_ree_lf_err_intr_unregister(vf, vf->lf_msixoff[j], base); in roc_ree_err_intr_register()
572 if (vf == NULL || vf->pci_dev == NULL) in roc_ree_dev_init()
582 dev = vf->dev; in roc_ree_dev_init()
640 if (vf == NULL) in roc_ree_dev_fini()
[all …]
H A Droc_ree.h109 int __roc_api roc_ree_dev_init(struct roc_ree_vf *vf);
110 int __roc_api roc_ree_dev_fini(struct roc_ree_vf *vf);
112 int __roc_api roc_ree_queues_detach(struct roc_ree_vf *vf);
113 int __roc_api roc_ree_msix_offsets_get(struct roc_ree_vf *vf);
116 int __roc_api roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg,
118 int __roc_api roc_ree_af_reg_write(struct roc_ree_vf *vf, uint64_t reg,
120 int __roc_api roc_ree_rule_db_get(struct roc_ree_vf *vf, char *rule_db,
123 int __roc_api roc_ree_rule_db_len_get(struct roc_ree_vf *vf,
130 void __roc_api roc_ree_err_intr_unregister(struct roc_ree_vf *vf);
131 int __roc_api roc_ree_err_intr_register(struct roc_ree_vf *vf);
[all …]
H A Droc_dev.c241 BIT_ULL(vf % max_bits); in vf_pf_process_msgs()
246 vf); in vf_pf_process_msgs()
286 mbox_msg_send(mbox, vf); in vf_pf_process_msgs()
335 mbox_reset(mbox, vf); in vf_pf_process_up_msgs()
351 for (vf = 0; vf < max_vf; vf++) { in roc_vf_pf_mbox_handle_msg()
352 if (dev->intr.bits[vf / max_bits] & BIT_ULL(vf % max_bits)) { in roc_vf_pf_mbox_handle_msg()
354 dev->pf, dev->vf); in roc_vf_pf_mbox_handle_msg()
448 uint16_t vf; in pf_vf_mbox_send_up_msg() local
453 for (vf = 0; vf < vf_mbox->ndevs; vf++) { in pf_vf_mbox_send_up_msg()
455 if (!(dev->active_vfs[vf / max_bits] & (BIT_ULL(vf)))) in pf_vf_mbox_send_up_msg()
[all …]
/dpdk/drivers/net/i40e/
H A Di40e_pf.c227 vf->pf->main_vsi, vf->vf_idx); in i40e_pf_host_vf_reset()
681 vf, in i40e_pf_host_process_cmd_config_irq_map()
702 vf->vsi->nb_used_qps = vf->vsi->nb_qps; in i40e_pf_host_process_cmd_config_irq_map()
821 vf, in i40e_pf_host_process_cmd_disable_queues()
856 vf, in i40e_pf_host_process_cmd_add_ether_address()
902 vf, in i40e_pf_host_process_cmd_del_ether_address()
943 vf, in i40e_pf_host_process_cmd_add_vlan()
984 vf, in i40e_pf_host_process_cmd_del_vlan()
1025 vf, in i40e_pf_host_process_cmd_config_promisc_mode()
1081 vf, in i40e_pf_host_process_cmd_enable_vlan_strip()
[all …]
/dpdk/drivers/net/ngbe/
H A Dngbe_pf.c292 vf_shift = vf & VFRE_MASK; in ngbe_vf_reset_msg()
301 for (i = vf * nb_q_per_pool; i < (vf + 1) * nb_q_per_pool; i++) { in ngbe_vf_reset_msg()
440 vfinfo[vf].vlan_count++; in ngbe_vf_set_vlan()
442 vfinfo[vf].vlan_count--; in ngbe_vf_set_vlan()
486 api_version, vf); in ngbe_negotiate_vf_api()
608 vf_info[vf].mac_count++; in ngbe_set_vf_macvlan_msg()
611 new_mac, vf, true); in ngbe_set_vf_macvlan_msg()
615 vf_info[vf].mac_count = 0; in ngbe_set_vf_macvlan_msg()
650 ret_param.vfid = vf; in ngbe_rcv_msg_from_vf()
743 uint16_t vf; in ngbe_pf_mbx_process() local
[all …]
/dpdk/drivers/net/iavf/
H A Diavf_vchnl.c105 vf->link_up = in iavf_read_msg_from_pf()
156 if (vf->vf_reset) in iavf_execute_vf_cmd()
172 _clear_cmd(vf); in iavf_execute_vf_cmd()
179 _clear_cmd(vf); in iavf_execute_vf_cmd()
199 _clear_cmd(vf); in iavf_execute_vf_cmd()
226 _clear_cmd(vf); in iavf_execute_vf_cmd()
264 struct iavf_info *vf = &adapter->vf; in iavf_handle_pf_event_msg() local
528 vf->vsi_res = &vf->vf_res->vsi_res[i]; in iavf_get_vf_resource()
536 vf->vsi.vsi_id = vf->vsi_res->vsi_id; in iavf_get_vf_resource()
537 vf->vsi.nb_qps = vf->vsi_res->num_queue_pairs; in iavf_get_vf_resource()
[all …]
H A Diavf_ethdev.c796 vf->nb_msix = 1; in iavf_config_rx_queues_irqs()
839 vf->nb_msix = 1; in iavf_config_rx_queues_irqs()
855 vf->nb_msix = in iavf_config_rx_queues_irqs()
903 vf->qv_map = NULL; in iavf_config_rx_queues_irqs()
1014 iavf_add_del_mc_addr_list(adapter, vf->mc_addrs, vf->mc_addrs_num, in iavf_dev_start()
1067 iavf_add_del_mc_addr_list(adapter, vf->mc_addrs, vf->mc_addrs_num, in iavf_dev_stop()
1084 struct iavf_info *vf = &adapter->vf; in iavf_dev_info_get() local
1298 vf->mac_num++; in iavf_dev_add_mac_addr()
1318 vf->mac_num--; in iavf_dev_del_mac_addr()
1545 vf->rss_hf = 0; in iavf_dev_rss_hash_update()
[all …]
H A Diavf_tm.c60 vf->tm_conf.root = NULL; in iavf_tm_conf_init()
63 vf->tm_conf.nb_tc_node = 0; in iavf_tm_conf_init()
86 if (vf->tm_conf.root) { in iavf_tm_conf_uninit()
88 vf->tm_conf.root = NULL; in iavf_tm_conf_uninit()
109 if (vf->tm_conf.root && vf->tm_conf.root->id == node_id) { in iavf_tm_node_search()
111 return vf->tm_conf.root; in iavf_tm_node_search()
330 if (vf->tm_conf.root) { in iavf_tm_node_add()
610 + vf->num_queue_pairs; in iavf_tm_capabilities_get()
706 vf->num_queue_pairs; in iavf_level_capabilities_get()
827 if (vf->tm_conf.nb_tc_node != vf->qos_cap->num_elem) { in iavf_hierarchy_commit()
[all …]
H A Diavf.h306 struct iavf_info vf; member
325 (&((struct iavf_adapter *)adapter)->vf)
335 (&(((struct iavf_vsi *)vsi)->adapter->vf))
369 _notify_cmd(struct iavf_info *vf, int msg_ret) in _notify_cmd() argument
371 vf->cmd_retval = msg_ret; in _notify_cmd()
373 vf->pend_cmd = VIRTCHNL_OP_UNKNOWN; in _notify_cmd()
380 _clear_cmd(struct iavf_info *vf) in _clear_cmd() argument
383 vf->pend_cmd = VIRTCHNL_OP_UNKNOWN; in _clear_cmd()
384 vf->cmd_retval = VIRTCHNL_STATUS_SUCCESS; in _clear_cmd()
389 _atomic_set_cmd(struct iavf_info *vf, enum virtchnl_ops ops) in _atomic_set_cmd() argument
[all …]
/dpdk/drivers/net/txgbe/
H A Dtxgbe_pf.c379 vf_shift = vf & VFRE_MASK; in txgbe_vf_reset_msg()
389 for (i = vf * nb_q_per_pool; i < (vf + 1) * nb_q_per_pool; i++) { in txgbe_vf_reset_msg()
528 vfinfo[vf].vlan_count++; in txgbe_vf_set_vlan()
530 vfinfo[vf].vlan_count--; in txgbe_vf_set_vlan()
574 api_version, vf); in txgbe_negotiate_vf_api()
748 vf_info[vf].mac_count++; in txgbe_set_vf_macvlan_msg()
751 new_mac, vf, true); in txgbe_set_vf_macvlan_msg()
755 vf_info[vf].mac_count = 0; in txgbe_set_vf_macvlan_msg()
790 ret_param.vfid = vf; in txgbe_rcv_msg_from_vf()
883 uint16_t vf; in txgbe_pf_mbx_process() local
[all …]
/dpdk/drivers/net/ixgbe/
H A Dixgbe_pf.c387 vf_shift = vf & VFRE_MASK; in ixgbe_vf_reset_msg()
397 for (i = vf * nb_q_per_pool; i < (vf + 1) * nb_q_per_pool; i++) { in ixgbe_vf_reset_msg()
444 ixgbe_vf_reset_msg(dev, vf); in ixgbe_vf_reset()
545 vfinfo[vf].vlan_count++; in ixgbe_vf_set_vlan()
547 vfinfo[vf].vlan_count--; in ixgbe_vf_set_vlan()
632 api_version, vf); in ixgbe_negotiate_vf_api()
811 vf_info[vf].mac_count++; in ixgbe_set_vf_macvlan_msg()
818 vf_info[vf].mac_count = 0; in ixgbe_set_vf_macvlan_msg()
854 ret_param.vfid = vf; in ixgbe_rcv_msg_from_vf()
948 uint16_t vf; in ixgbe_pf_mbx_process() local
[all …]
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()
252 if ((vf >= pci_dev->max_vfs) || (vf > 63)) in rte_pmd_ixgbe_set_vf_split_drop_en()
394 if (vf >= 32) { in rte_pmd_ixgbe_set_vf_rx()
396 val = bit1 << (vf - 32); in rte_pmd_ixgbe_set_vf_rx()
399 val = bit1 << vf; in rte_pmd_ixgbe_set_vf_rx()
444 if (vf >= 32) { in rte_pmd_ixgbe_set_vf_tx()
446 val = bit1 << (vf - 32); in rte_pmd_ixgbe_set_vf_tx()
[all …]
H A Drte_pmd_ixgbe.h30 int rte_pmd_ixgbe_ping_vf(uint16_t port, uint16_t vf);
46 int rte_pmd_ixgbe_set_vf_mac_addr(uint16_t port, uint16_t vf,
64 int rte_pmd_ixgbe_set_vf_vlan_anti_spoof(uint16_t port, uint16_t vf,
82 int rte_pmd_ixgbe_set_vf_mac_anti_spoof(uint16_t port, uint16_t vf, uint8_t on);
100 int rte_pmd_ixgbe_set_vf_vlan_insert(uint16_t port, uint16_t vf,
152 int rte_pmd_ixgbe_set_vf_split_drop_en(uint16_t port, uint16_t vf, uint8_t on);
172 rte_pmd_ixgbe_set_vf_vlan_stripq(uint16_t port, uint16_t vf, uint8_t on);
301 rte_pmd_ixgbe_set_vf_rxmode(uint16_t port, uint16_t vf, uint16_t rx_mask,
321 rte_pmd_ixgbe_set_vf_rx(uint16_t port, uint16_t vf, uint8_t on);
340 rte_pmd_ixgbe_set_vf_tx(uint16_t port, uint16_t vf, uint8_t on);
[all …]
/dpdk/drivers/net/e1000/
H A Digb_pf.c249 vfinfo[vf].num_vf_mc_hashes = 0; in igb_vf_reset_event()
263 reg |= (reg | (1 << vf)); in igb_vf_reset_msg()
267 reg |= (reg | (1 << vf)); in igb_vf_reset_msg()
270 igb_vf_reset_event(dev, vf); in igb_vf_reset_msg()
284 igb_vf_reset_msg(dev, vf); in igb_vf_reset()
379 vfinfo[vf].vlan_count++; in igb_vf_set_vlan()
380 else if (vfinfo[vf].vlan_count) in igb_vf_set_vlan()
381 vfinfo[vf].vlan_count--; in igb_vf_set_vlan()
491 e1000_write_mbx(hw, &msg, 1, vf); in igb_rcv_ack_from_vf()
496 uint16_t vf; in igb_pf_mbx_process() local
[all …]
/dpdk/drivers/net/qede/base/
H A Decore_sriov.c248 return vf; in ecore_iov_get_vf_info()
768 if (!vf) in ecore_iov_set_vf_to_disable()
920 vf->abs_vf_id, vf->num_sbs); in ecore_iov_enable_vf_access()
1222 vf->relative_vf_id, i, vf->igu_sbs[i], in ecore_iov_init_hw_for_vf()
1304 OSAL_MEMSET(&vf->acquire, 0, sizeof(vf->acquire)); in ecore_iov_release_hw_for_vf()
1584 if (!vf) in ecore_iov_get_public_vf_info()
1800 vf->abs_vf_id, vf->state); in ecore_iov_vf_mbx_acquire()
2252 vf->vport_id, vf->opaque_fid); in ecore_iov_vf_mbx_start_vport()
4754 if (!vf) in ecore_iov_spoofchk_set()
4897 if (!vf) in ecore_iov_configure_tx_rate()
[all …]
/dpdk/drivers/net/bnxt/
H A Drte_pmd_bnxt.c165 vf, port); in rte_pmd_bnxt_set_vf_mac_addr()
203 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()
331 bp->pf->first_vf_id + vf, in rte_pmd_bnxt_set_vf_vlan_anti_spoof()
374 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_stripq()
380 vf, port); 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()
836 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_insert()
[all …]
H A Drte_pmd_bnxt.h57 int rte_pmd_bnxt_set_vf_mac_anti_spoof(uint16_t port, uint16_t vf, uint8_t on);
73 int rte_pmd_bnxt_set_vf_mac_addr(uint16_t port, uint16_t vf,
94 rte_pmd_bnxt_set_vf_vlan_stripq(uint16_t port, uint16_t vf, uint8_t on);
113 rte_pmd_bnxt_set_vf_vlan_insert(uint16_t port, uint16_t vf,
186 int rte_pmd_bnxt_set_vf_rate_limit(uint16_t port, uint16_t vf,
240 int rte_pmd_bnxt_set_vf_vlan_anti_spoof(uint16_t port, uint16_t vf, uint8_t on);
259 int rte_pmd_bnxt_set_vf_rxmode(uint16_t port, uint16_t vf,
329 int rte_pmd_bnxt_set_vf_persist_stats(uint16_t port, uint16_t vf, uint8_t on);
/dpdk/drivers/net/thunderx/
H A Dnicvf_svf.c16 nicvf_svf_push(struct nicvf *vf) in nicvf_svf_push() argument
20 assert(vf != NULL); in nicvf_svf_push()
26 entry->vf = vf; in nicvf_svf_push()
34 struct nicvf *vf; in nicvf_svf_pop() local
39 vf = entry->vf; in nicvf_svf_pop()
43 return vf; in nicvf_svf_pop()
/dpdk/drivers/regex/cn9k/
H A Dcn9k_regexdev.c62 struct roc_ree_vf *vf = &data->vf; in ree_qp_create() local
243 struct roc_ree_vf *vf = &data->vf; in ree_dev_fini() local
262 roc_ree_dev_fini(vf); in ree_dev_fini()
483 struct roc_ree_vf *vf = &data->vf; in cn9k_ree_dev_info_get() local
509 struct roc_ree_vf *vf = &data->vf; in cn9k_ree_dev_config() local
536 if (vf->nb_queues) { in cn9k_ree_dev_config()
644 struct roc_ree_vf *vf = &data->vf; in cn9k_ree_start() local
768 struct roc_ree_vf *vf = &data->vf; in cn9k_ree_rule_db_import() local
795 struct roc_ree_vf *vf = &data->vf; in cn9k_ree_rule_db_export() local
856 struct roc_ree_vf *vf; in cn9k_ree_pci_probe() local
[all …]
/dpdk/drivers/compress/octeontx/
H A Dotx_zip.c30 zip_reg_write64(qp->vf->vbar0, ZIP_VQ_ENA, que_ena.u); in zip_q_enable()
44 struct zip_vf *vf = qp->vf; in zipvf_q_init() local
61 if (vf->pdev->id.device_id == PCI_DEVICE_ID_OCTEONTX2_ZIPVF) in zipvf_q_init()
66 zip_reg_write64(vf->vbar0, ZIP_VQ_SBUF_ADDR, que_sbuf_addr.u); in zipvf_q_init()
81 struct zip_vf *vf = qp->vf; in zipvf_q_term() local
90 zip_reg_write64(vf->vbar0, ZIP_VQ_ENA, que_ena.u); in zipvf_q_term()
102 void *reg_base = qp->vf->vbar0; in zipvf_push_command()
178 struct zip_vf *vf = (struct zip_vf *)(compressdev->data->dev_private); in zipvf_destroy() local
181 zip_reg_write64(vf->vbar0, ZIP_VF_PF_MBOXX(0), vf->dom_sdom); in zipvf_destroy()
/dpdk/drivers/crypto/cnxk/
H A Dcn9k_cryptodev.c47 struct cnxk_cpt_vf *vf; in cn9k_cpt_pci_probe() local
65 vf = dev->data->dev_private; in cn9k_cpt_pci_probe()
67 roc_cpt = &vf->cpt; in cn9k_cpt_pci_probe()
72 rc = cnxk_cpt_parse_devargs(dev->device->devargs, vf); in cn9k_cpt_pci_probe()
100 cnxk_cpt_caps_populate(vf); in cn9k_cpt_pci_probe()
125 struct cnxk_cpt_vf *vf; in cn9k_cpt_pci_remove() local
141 vf = dev->data->dev_private; in cn9k_cpt_pci_remove()
142 ret = roc_cpt_dev_fini(&vf->cpt); in cn9k_cpt_pci_remove()
H A Dcn10k_cryptodev.c47 struct cnxk_cpt_vf *vf; in cn10k_cpt_pci_probe() local
65 vf = dev->data->dev_private; in cn10k_cpt_pci_probe()
67 roc_cpt = &vf->cpt; in cn10k_cpt_pci_probe()
72 rc = cnxk_cpt_parse_devargs(dev->device->devargs, vf); in cn10k_cpt_pci_probe()
96 cnxk_cpt_caps_populate(vf); in cn10k_cpt_pci_probe()
125 struct cnxk_cpt_vf *vf; in cn10k_cpt_pci_remove() local
141 vf = dev->data->dev_private; in cn10k_cpt_pci_remove()
142 ret = roc_cpt_dev_fini(&vf->cpt); in cn10k_cpt_pci_remove()
H A Dcnxk_cryptodev_ops.c57 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_dev_config()
84 ret = roc_ae_ec_grp_get(vf->ec_grp); in cnxk_cpt_dev_config()
99 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_dev_start()
118 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_dev_stop()
150 roc_cpt_dev_clear(&vf->cpt); in cnxk_cpt_dev_close()
160 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_dev_info_get()
330 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_queue_pair_release()
361 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_queue_pair_setup()
612 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_cpt_sym_session_configure()
682 struct roc_cpt *roc_cpt = &vf->cpt; in cnxk_ae_session_cfg()
[all …]

12345678