| /dpdk/lib/vhost/ |
| H A D | rte_vhost.h | 285 int (*new_connection)(int vid); 286 void (*destroy_connection)(int vid); 294 void (*guest_notified)(int vid); 641 int rte_vhost_get_mtu(int vid, uint16_t *mtu); 653 int rte_vhost_get_numa_node(int vid); 670 uint32_t rte_vhost_get_queue_num(int vid); 681 uint16_t rte_vhost_get_vring_num(int vid); 854 rte_vhost_set_last_inflight_io_split(int vid, 873 rte_vhost_set_last_inflight_io_packed(int vid, 1038 rte_vhost_extern_callback_register(int vid, [all …]
|
| H A D | vdpa_driver.h | 36 int (*dev_conf)(int vid); 39 int (*dev_close)(int vid); 42 int (*dev_cleanup)(int vid); 45 int (*set_vring_state)(int vid, int vring, int state); 48 int (*set_features)(int vid); 51 int (*migration_done)(int vid); 54 int (*get_vfio_group_fd)(int vid); 57 int (*get_vfio_device_fd)(int vid); 60 int (*get_notify_area)(int vid, int qid, 131 rte_vhost_host_notifier_ctrl(int vid, uint16_t qid, bool enable); [all …]
|
| H A D | vhost.c | 686 dev->vid = i; in vhost_new_device() 746 dev = get_device(vid); in vhost_set_ifname() 837 RTE_SET_USED(vid); in rte_vhost_get_numa_node() 885 dev = get_device(vid); in rte_vhost_get_negotiated_features() 899 dev = get_device(vid); in rte_vhost_get_negotiated_protocol_features() 914 dev = get_device(vid); in rte_vhost_get_mem_table() 937 dev = get_device(vid); in rte_vhost_get_vhost_vring() 973 dev = get_device(vid); in rte_vhost_get_vhost_ring_inflight() 1008 dev = get_device(vid); in rte_vhost_set_inflight_desc_split() 1048 dev = get_device(vid); in rte_vhost_set_inflight_desc_packed() [all …]
|
| H A D | rte_vhost_async.h | 28 int rte_vhost_async_channel_register(int vid, uint16_t queue_id); 41 int rte_vhost_async_channel_unregister(int vid, uint16_t queue_id); 58 int rte_vhost_async_channel_register_thread_unsafe(int vid, uint16_t queue_id); 75 int rte_vhost_async_channel_unregister_thread_unsafe(int vid, 99 uint16_t rte_vhost_submit_enqueue_burst(int vid, uint16_t queue_id, 124 uint16_t rte_vhost_poll_enqueue_completed(int vid, uint16_t queue_id, 140 int rte_vhost_async_get_inflight(int vid, uint16_t queue_id); 157 int rte_vhost_async_get_inflight_thread_unsafe(int vid, uint16_t queue_id); 182 uint16_t rte_vhost_clear_queue_thread_unsafe(int vid, uint16_t queue_id,
|
| H A D | rte_vhost_crypto.h | 66 rte_vhost_crypto_create(int vid, uint8_t cryptodev_id, 81 rte_vhost_crypto_free(int vid); 95 rte_vhost_crypto_set_zero_copy(int vid, enum rte_vhost_crypto_zero_copy option); 115 rte_vhost_crypto_fetch_requests(int vid, uint32_t qid,
|
| H A D | socket.c | 66 int vid; member 206 int vid; in vhost_user_add_connection() local 221 vid = vhost_new_device(); in vhost_user_add_connection() 222 if (vid == -1) { in vhost_user_add_connection() 235 vhost_enable_extbuf(vid); in vhost_user_add_connection() 238 vhost_enable_linearbuf(vid); in vhost_user_add_connection() 241 dev = get_device(vid); in vhost_user_add_connection() 261 conn->vid = vid; in vhost_user_add_connection() 282 vhost_destroy_device(vid); in vhost_user_add_connection() 323 vhost_destroy_device(conn->vid); in vhost_user_read_cb() [all …]
|
| H A D | vhost.h | 447 int vid; member 756 get_device(int vid) in get_device() argument 758 struct virtio_net *dev = vhost_devices[vid]; in get_device() 762 "(%d) device not found.\n", vid); in get_device() 780 void vhost_attach_vdpa_device(int vid, struct rte_vdpa_device *dev); 783 void vhost_setup_virtio_net(int vid, bool enable, bool legacy_ol_flags); 784 void vhost_enable_extbuf(int vid); 785 void vhost_enable_linearbuf(int vid); 860 dev->notify_ops->guest_notified(dev->vid); in vhost_vring_call_split() 868 dev->notify_ops->guest_notified(dev->vid); in vhost_vring_call_split() [all …]
|
| /dpdk/drivers/vdpa/ifc/ |
| H A D | ifcvf_vdpa.c | 57 int vid; member 264 int vid; in vdpa_ifcvf_start() local 268 vid = internal->vid; in vdpa_ifcvf_start() 309 int vid; in vdpa_ifcvf_stop() local 314 vid = internal->vid; in vdpa_ifcvf_stop() 597 vid = internal->vid; in m_ifcvf_start() 670 int vid; in m_ifcvf_stop() local 677 vid = internal->vid; in m_ifcvf_stop() 723 vid = internal->vid; in vring_relay() 839 int vid = internal->vid; in ifcvf_sw_fallback_switchover() local [all …]
|
| /dpdk/examples/vhost/ |
| H A D | main.c | 227 int64_t vid; in open_dma() local 913 vdev->vid); in link_vmdq() 936 vdev->vid); in link_vmdq() 1104 if (vdev->vid == dst_vdev->vid) { in virtio_tx_local() 1152 if (vdev->vid == dst_vdev->vid) { in find_local_dest() 1169 vdev->vid, dst_vdev->vid, *vlan_tag); in find_local_dest() 1495 if (vdev->vid == vid) in destroy_device() 1535 vdev->vid); in destroy_device() 1574 vid); in new_device() 1577 vdev->vid = vid; in new_device() [all …]
|
| H A D | virtio_net.c | 24 int vid = dev->vid; in vs_vhost_net_setup() local 31 rte_vhost_get_negotiated_features(vid, &dev->features); in vs_vhost_net_setup() 37 ret = rte_vhost_get_mem_table(vid, &dev->mem); in vs_vhost_net_setup() 40 "VM memory layout for device(%d)\n", vid); in vs_vhost_net_setup() 44 dev->nr_vrings = rte_vhost_get_vring_num(vid); in vs_vhost_net_setup() 50 rte_vhost_get_vhost_vring(vid, i, &queue->vr); in vs_vhost_net_setup() 236 rte_vhost_vring_call(dev->vid, queue_id); in vs_enqueue_pkts() 439 rte_vhost_vring_call(dev->vid, queue_id); in vs_dequeue_pkts()
|
| /dpdk/drivers/vdpa/sfc/ |
| H A D | sfc_vdpa_ops.c | 71 hva_to_gpa(int vid, uint64_t hva) in hva_to_gpa() argument 558 int vid; in sfc_vdpa_notify_ctrl() local 566 vid = ops_data->vid; in sfc_vdpa_notify_ctrl() 604 sfc_vdpa_dev_config(int vid) in sfc_vdpa_dev_config() argument 616 vdpa_dev, vid); in sfc_vdpa_dev_config() 622 ops_data->vid = vid; in sfc_vdpa_dev_config() 659 sfc_vdpa_dev_close(int vid) in sfc_vdpa_dev_close() argument 671 vdpa_dev, vid); in sfc_vdpa_dev_close() 721 vid, vring, state); in sfc_vdpa_set_vring_state() 759 sfc_vdpa_set_features(int vid) in sfc_vdpa_set_features() argument [all …]
|
| /dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa.c | 155 mlx5_vdpa_features_set(int vid) in mlx5_vdpa_features_set() argument 252 mlx5_vdpa_dev_close(int vid) in mlx5_vdpa_dev_close() argument 275 priv->vid = 0; in mlx5_vdpa_dev_close() 278 DRV_LOG(INFO, "vDPA device %d was closed.", vid); in mlx5_vdpa_dev_close() 283 mlx5_vdpa_dev_config(int vid) in mlx5_vdpa_dev_config() argument 294 mlx5_vdpa_dev_close(vid)) { in mlx5_vdpa_dev_config() 298 priv->vid = vid; in mlx5_vdpa_dev_config() 306 mlx5_vdpa_dev_close(vid); in mlx5_vdpa_dev_config() 315 mlx5_vdpa_get_device_fd(int vid) in mlx5_vdpa_get_device_fd() argument 428 mlx5_vdpa_dev_cleanup(int vid) in mlx5_vdpa_dev_cleanup() argument [all …]
|
| H A D | mlx5_vdpa_virtq.c | 29 priv->vid, virtq->index); in mlx5_vdpa_virtq_kick_handler() 52 priv->vid, virtq->index); in mlx5_vdpa_virtq_kick_handler() 178 "hw_used_index=%d", priv->vid, index, in mlx5_vdpa_virtq_query() 189 priv->vid, index, attr.error_type); in mlx5_vdpa_virtq_query() 406 priv->vid, index); in mlx5_vdpa_virtq_setup() 430 " capability.", priv->vid); in mlx5_vdpa_features_validate() 438 priv->vid); in mlx5_vdpa_features_validate() 446 priv->vid); in mlx5_vdpa_features_validate() 454 priv->vid); in mlx5_vdpa_features_validate() 462 "capability.", priv->vid); in mlx5_vdpa_features_validate() [all …]
|
| /dpdk/examples/vhost_blk/ |
| H A D | vhost_blk.c | 99 rte_vhost_vring_call(task->ctrlr->vid, vq->id); in enqueue_task() 134 rte_vhost_vring_call(task->ctrlr->vid, vq->id); in enqueue_task_packed() 601 new_device(int vid) in new_device() argument 626 ctrlr->vid = vid; in new_device() 635 vid, &protocol_features); in new_device() 657 ctrlr->vid, i, in new_device() 663 ctrlr->vid, i, in new_device() 701 destroy_device(int vid) in destroy_device() argument 736 rte_vhost_set_vring_base(ctrlr->vid, i, in destroy_device() 748 new_connection(int vid) in new_connection() argument [all …]
|
| H A D | vhost_blk_compat.c | 69 extern_vhost_pre_msg_handler(int vid, void *_msg) in extern_vhost_pre_msg_handler() argument 76 ret = rte_vhost_get_ifname(vid, path, PATH_MAX); in extern_vhost_pre_msg_handler() 117 extern_vhost_post_msg_handler(int vid, void *_msg) in extern_vhost_post_msg_handler() argument 124 ret = rte_vhost_get_ifname(vid, path, PATH_MAX); in extern_vhost_post_msg_handler() 152 vhost_session_install_rte_compat_hooks(uint32_t vid) in vhost_session_install_rte_compat_hooks() argument 156 rc = rte_vhost_extern_callback_register(vid, &g_extern_vhost_ops, NULL); in vhost_session_install_rte_compat_hooks() 160 vid); in vhost_session_install_rte_compat_hooks()
|
| /dpdk/drivers/net/fm10k/base/ |
| H A D | fm10k_vf.c | 202 if ((vid << 16 | vid) >> 28) in fm10k_update_vlan_vf() 207 vid |= FM10K_VLAN_CLEAR; in fm10k_update_vlan_vf() 229 u16 vid; in fm10k_msg_mac_vlan_vf() local 238 perm_addr, &vid); in fm10k_msg_mac_vlan_vf() 301 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_uc_addr_vf() argument 311 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_uc_addr_vf() 325 vid |= FM10K_VLAN_CLEAR; in fm10k_update_uc_addr_vf() 347 const u8 *mac, u16 vid, bool add) in fm10k_update_mc_addr_vf() argument 357 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_mc_addr_vf() 366 vid |= FM10K_VLAN_CLEAR; in fm10k_update_mc_addr_vf() [all …]
|
| H A D | fm10k_api.c | 181 s32 fm10k_update_vlan(struct fm10k_hw *hw, u32 vid, u8 idx, bool set) in fm10k_update_vlan() argument 183 return fm10k_call_func(hw, hw->mac.ops.update_vlan, (hw, vid, idx, set), in fm10k_update_vlan() 295 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_uc_addr() argument 298 (hw, lport, mac, vid, add, flags), in fm10k_update_uc_addr() 313 const u8 *mac, u16 vid, bool add) in fm10k_update_mc_addr() argument 316 (hw, lport, mac, vid, add), in fm10k_update_mc_addr()
|
| H A D | fm10k_pf.c | 239 len = vid >> 16; in fm10k_update_vlan_pf() 240 vid = (vid << 17) >> 17; in fm10k_update_vlan_pf() 247 for (reg = FM10K_VLAN_TABLE(vsi, vid / 32), bit = vid % 32; in fm10k_update_vlan_pf() 340 vid &= ~FM10K_VLAN_CLEAR; in fm10k_update_xc_addr_pf() 731 FM10K_TXQCTL_VF | vid); in fm10k_iov_assign_resources_pf() 1217 if (!vid) in fm10k_iov_select_vid() 1222 return vid; in fm10k_iov_select_vid() 1244 u32 vid; in fm10k_iov_msg_mac_vlan_pf() local 1261 vid &= ~FM10K_VLAN_CLEAR; in fm10k_iov_msg_mac_vlan_pf() 1273 if (vid >> 16) { in fm10k_iov_msg_mac_vlan_pf() [all …]
|
| H A D | fm10k_api.h | 21 s32 fm10k_update_vlan(struct fm10k_hw *hw, u32 vid, u8 idx, bool set); 30 const u8 *mac, u16 vid, bool add, u8 flags); 32 const u8 *mac, u16 vid, bool add);
|
| /dpdk/drivers/net/vhost/ |
| H A D | rte_eth_vhost.c | 92 int vid; member 110 int vid; member 772 vq->vid = internal->vid; in queue_setup() 780 vq->vid = internal->vid; in queue_setup() 787 new_device(int vid) in new_device() argument 816 internal->vid = vid; in new_device() 878 vq->vid = -1; in destroy_device() 884 vq->vid = -1; in destroy_device() 1106 int vid = -1; in rte_eth_vhost_get_vid_from_port_id() local 1118 vid = vq->vid; in rte_eth_vhost_get_vid_from_port_id() [all …]
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | vhost_lib.rst | 145 * ``new_device(int vid)`` 150 * ``destroy_device(int vid)`` 159 * ``features_changed(int vid, uint64_t features)`` 165 * ``new_connection(int vid)`` 171 * ``destroy_connection(int vid)`` 188 * ``rte_vhost_enqueue_burst(vid, queue_id, pkts, count)`` 202 * ``rte_vhost_crypto_free(vid)`` 217 * ``rte_vhost_crypto_set_zero_copy(vid, option)`` 226 * ``rte_vhost_async_channel_register(vid, queue_id)`` 238 * ``rte_vhost_async_channel_unregister(vid, queue_id)`` [all …]
|
| /dpdk/drivers/net/vmxnet3/base/ |
| H A D | vmxnet3_defs.h | 815 #define VMXNET3_SET_VFTABLE_ENTRY(vfTable, vid) \ argument 816 vfTable[vid >> 5] |= (1 << (vid & 31)) 817 #define VMXNET3_CLEAR_VFTABLE_ENTRY(vfTable, vid) \ argument 818 vfTable[vid >> 5] &= ~(1 << (vid & 31)) 820 #define VMXNET3_VFTABLE_ENTRY_IS_SET(vfTable, vid) \ argument 821 ((vfTable[vid >> 5] & (1 << (vid & 31))) != 0)
|
| /dpdk/examples/vhost_crypto/ |
| H A D | main.c | 276 new_device(int vid) in new_device() argument 283 ret = rte_vhost_get_ifname(vid, path, PATH_MAX); in new_device() 306 ret = rte_vhost_crypto_create(vid, info->cid, info->sess_pool, in new_device() 314 ret = rte_vhost_crypto_set_zero_copy(vid, options.zero_copy); in new_device() 321 info->vids[j] = vid; in new_device() 327 vid); in new_device() 332 destroy_device(int vid) in destroy_device() argument 339 if (options.infos[i]->vids[j] == vid) { in destroy_device() 361 rte_vhost_crypto_free(vid); in destroy_device() 363 RTE_LOG(INFO, USER1, "Vhost Crypto Device %i Removed\n", vid); in destroy_device()
|
| /dpdk/examples/vdpa/ |
| H A D | main.c | 31 int vid; member 104 new_device(int vid) in new_device() argument 110 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in new_device() 122 vports[i].vid = vid; in new_device() 133 destroy_device(int vid) in destroy_device() argument 139 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in destroy_device() 413 last = rte_vhost_get_vring_num(vport->vid); in cmd_device_stats_parsed()
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_rx_filter.c | 96 ionic_rx_filter_by_vlan(struct ionic_lif *lif, uint16_t vid) in ionic_rx_filter_by_vlan() argument 98 uint32_t key = vid & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_by_vlan() 100 __le16 vid_le = rte_cpu_to_le_16(vid); in ionic_rx_filter_by_vlan()
|