H A D | vhost.c | 70 __vhost_iova_to_vva(struct virtio_net *dev, struct vhost_virtqueue *vq, in __vhost_iova_to_vva() argument 170 __vhost_log_write_iova(struct virtio_net *dev, struct vhost_virtqueue *vq, in __vhost_log_write_iova() argument 190 __vhost_log_cache_sync(struct virtio_net *dev, struct vhost_virtqueue *vq) in __vhost_log_cache_sync() argument 228 vhost_log_cache_page(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t page) vhost_log_cache_page() argument 269 __vhost_log_cache_write(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t addr,uint64_t len) __vhost_log_cache_write() argument 288 __vhost_log_cache_write_iova(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t iova,uint64_t len) __vhost_log_cache_write_iova() argument 308 vhost_alloc_copy_ind_table(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t desc_addr,uint64_t desc_len) vhost_alloc_copy_ind_table() argument 341 cleanup_vq(struct vhost_virtqueue * vq,int destroy) cleanup_vq() argument 350 cleanup_vq_inflight(struct virtio_net * dev,struct vhost_virtqueue * vq) cleanup_vq_inflight() argument 392 vhost_free_async_mem(struct vhost_virtqueue * vq) vhost_free_async_mem() argument 411 free_vq(struct virtio_net * dev,struct vhost_virtqueue * vq) free_vq() argument 441 log_translate(struct virtio_net * dev,struct vhost_virtqueue * vq) log_translate() argument 461 translate_log_addr(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t log_addr) translate_log_addr() argument 490 vring_translate_split(struct virtio_net * dev,struct vhost_virtqueue * vq) vring_translate_split() argument 529 vring_translate_packed(struct virtio_net * dev,struct vhost_virtqueue * vq) vring_translate_packed() argument 562 vring_translate(struct virtio_net * dev,struct vhost_virtqueue * vq) vring_translate() argument 585 vring_invalidate(struct virtio_net * dev __rte_unused,struct vhost_virtqueue * vq) vring_invalidate() argument 599 init_vring_queue(struct virtio_net * dev __rte_unused,struct vhost_virtqueue * vq,uint32_t vring_idx) init_vring_queue() argument 622 reset_vring_queue(struct virtio_net * dev,struct vhost_virtqueue * vq) reset_vring_queue() argument 634 struct vhost_virtqueue *vq; alloc_vring_queue() local 679 struct vhost_virtqueue *vq = dev->virtqueue[i]; reset_device() local 989 struct vhost_virtqueue *vq; rte_vhost_get_vhost_vring() local 1025 struct vhost_virtqueue *vq; rte_vhost_get_vhost_ring_inflight() local 1059 struct vhost_virtqueue *vq; rte_vhost_set_inflight_desc_split() local 1098 struct vhost_virtqueue *vq; rte_vhost_set_inflight_desc_packed() local 1164 struct vhost_virtqueue *vq; rte_vhost_clr_inflight_desc_split() local 1206 struct vhost_virtqueue *vq; rte_vhost_clr_inflight_desc_packed() local 1251 struct vhost_virtqueue *vq; rte_vhost_set_last_inflight_io_split() local 1287 struct vhost_virtqueue *vq; rte_vhost_set_last_inflight_io_packed() local 1335 struct vhost_virtqueue *vq; rte_vhost_vring_call() local 1371 struct vhost_virtqueue *vq; rte_vhost_vring_call_nonblock() local 1408 struct vhost_virtqueue *vq; rte_vhost_avail_entries() local 1439 vhost_enable_notify_split(struct virtio_net * dev,struct vhost_virtqueue * vq,int enable) vhost_enable_notify_split() argument 1458 vhost_enable_notify_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,int enable) vhost_enable_notify_packed() argument 1485 vhost_enable_guest_notification(struct virtio_net * dev,struct vhost_virtqueue * vq,int enable) vhost_enable_guest_notification() argument 1504 struct vhost_virtqueue *vq; rte_vhost_enable_guest_notification() local 1537 struct vhost_virtqueue *vq; rte_vhost_notify_guest() local 1585 struct vhost_virtqueue *vq; rte_vhost_log_used_vring() local 1604 struct vhost_virtqueue *vq; rte_vhost_rx_queue_count() local 1667 struct vhost_virtqueue *vq; rte_vhost_get_vring_base() local 1697 struct vhost_virtqueue *vq; rte_vhost_set_vring_base() local 1730 struct vhost_virtqueue *vq; rte_vhost_get_vring_base_from_inflight() local 1772 async_channel_register(struct virtio_net * dev,struct vhost_virtqueue * vq) async_channel_register() argument 1847 struct vhost_virtqueue *vq; rte_vhost_async_channel_register() local 1880 struct vhost_virtqueue *vq; rte_vhost_async_channel_register_thread_unsafe() local 1902 struct vhost_virtqueue *vq; rte_vhost_async_channel_unregister() local 1948 struct vhost_virtqueue *vq; rte_vhost_async_channel_unregister_thread_unsafe() local 2058 struct vhost_virtqueue *vq; rte_vhost_async_get_inflight() local 2096 struct vhost_virtqueue *vq; rte_vhost_async_get_inflight_thread_unsafe() local 2126 struct vhost_virtqueue *vq; rte_vhost_get_monitor_addr() local 2203 struct vhost_virtqueue *vq; rte_vhost_vring_stats_get() local 2247 struct vhost_virtqueue *vq; rte_vhost_vring_stats_reset() local [all...] |
H A D | virtio_net.c | 56 vhost_queue_stats_update(const struct virtio_net *dev, struct vhost_virtqueue *vq, in vhost_queue_stats_update() argument 152 ret = vhost_async_dma_transfer_one(dev, vq, dma_i argument 102 vhost_async_dma_transfer_one(struct virtio_net * dev,struct vhost_virtqueue * vq,int16_t dma_id,uint16_t vchan_id,uint16_t flag_idx,struct vhost_iov_iter * pkt) vhost_async_dma_transfer_one() argument 235 do_data_copy_enqueue(struct virtio_net * dev,struct vhost_virtqueue * vq) do_data_copy_enqueue() argument 253 do_data_copy_dequeue(struct vhost_virtqueue * vq) do_data_copy_dequeue() argument 267 do_flush_shadow_used_ring_split(struct virtio_net * dev,struct vhost_virtqueue * vq,uint16_t to,uint16_t from,uint16_t size) do_flush_shadow_used_ring_split() argument 279 flush_shadow_used_ring_split(struct virtio_net * dev,struct vhost_virtqueue * vq) flush_shadow_used_ring_split() argument 309 update_shadow_used_ring_split(struct vhost_virtqueue * vq,uint16_t desc_idx,uint32_t len) update_shadow_used_ring_split() argument 320 vhost_flush_enqueue_shadow_packed(struct virtio_net * dev,struct vhost_virtqueue * vq) vhost_flush_enqueue_shadow_packed() argument 384 vhost_flush_dequeue_shadow_packed(struct virtio_net * dev,struct vhost_virtqueue * vq) vhost_flush_dequeue_shadow_packed() argument 403 vhost_flush_enqueue_batch_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t * lens,uint16_t * ids) vhost_flush_enqueue_batch_packed() argument 438 vhost_async_shadow_enqueue_packed_batch(struct vhost_virtqueue * vq,uint64_t * lens,uint16_t * ids) vhost_async_shadow_enqueue_packed_batch() argument 457 vhost_async_shadow_dequeue_packed_batch(struct vhost_virtqueue * vq,uint16_t * ids) vhost_async_shadow_dequeue_packed_batch() argument 475 vhost_shadow_dequeue_batch_packed_inorder(struct vhost_virtqueue * vq,uint16_t id) vhost_shadow_dequeue_batch_packed_inorder() argument 494 vhost_shadow_dequeue_batch_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,uint16_t * ids) vhost_shadow_dequeue_batch_packed() argument 533 vhost_shadow_dequeue_single_packed(struct vhost_virtqueue * vq,uint16_t buf_id,uint16_t count) vhost_shadow_dequeue_single_packed() argument 565 vhost_shadow_dequeue_single_packed_inorder(struct vhost_virtqueue * vq,uint16_t buf_id,uint16_t count) vhost_shadow_dequeue_single_packed_inorder() argument 593 vhost_shadow_enqueue_packed(struct vhost_virtqueue * vq,uint32_t * len,uint16_t * id,uint16_t * count,uint16_t num_buffers) vhost_shadow_enqueue_packed() argument 615 vhost_async_shadow_enqueue_packed(struct vhost_virtqueue * vq,uint32_t * len,uint16_t * id,uint16_t * count,uint16_t num_buffers) vhost_async_shadow_enqueue_packed() argument 637 vhost_shadow_enqueue_single_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,uint32_t * len,uint16_t * id,uint16_t * count,uint16_t num_buffers) vhost_shadow_enqueue_single_packed() argument 731 map_one_desc(struct virtio_net * dev,struct vhost_virtqueue * vq,struct buf_vector * buf_vec,uint16_t * vec_idx,uint64_t desc_iova,uint64_t desc_len,uint8_t perm) map_one_desc() argument 768 fill_vec_buf_split(struct virtio_net * dev,struct vhost_virtqueue * vq,uint32_t avail_idx,uint16_t * vec_idx,struct buf_vector * buf_vec,uint16_t * desc_chain_head,uint32_t * desc_chain_len,uint8_t perm) fill_vec_buf_split() argument 852 reserve_avail_buf_split(struct virtio_net * dev,struct vhost_virtqueue * vq,uint64_t size,struct buf_vector * buf_vec,uint16_t * num_buffers,uint16_t avail_head,uint16_t * nr_vec) reserve_avail_buf_split() argument 904 fill_vec_buf_packed_indirect(struct virtio_net * dev,struct vhost_virtqueue * vq,struct vring_packed_desc * desc,uint16_t * vec_idx,struct buf_vector * buf_vec,uint32_t * len,uint8_t perm) fill_vec_buf_packed_indirect() argument 962 fill_vec_buf_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,uint16_t avail_idx,uint16_t * desc_count,struct buf_vector * buf_vec,uint16_t * vec_idx,uint16_t * buf_id,uint32_t * len,uint8_t perm) fill_vec_buf_packed() argument 1029 copy_vnet_hdr_to_desc(struct virtio_net * dev,struct vhost_virtqueue * vq,struct buf_vector * buf_vec,struct virtio_net_hdr_mrg_rxbuf * hdr) copy_vnet_hdr_to_desc() argument 1132 async_fill_seg(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * m,uint32_t mbuf_offset,uint64_t buf_iova,uint32_t cpy_len,bool to_desc) async_fill_seg() argument 1174 sync_fill_seg(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * m,uint32_t mbuf_offset,uint64_t buf_addr,uint64_t buf_iova,uint32_t cpy_len,bool to_desc) sync_fill_seg() argument 1212 mbuf_to_desc(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * m,struct buf_vector * buf_vec,uint16_t nr_vec,uint16_t num_buffers,bool is_async) mbuf_to_desc() argument 1341 vhost_enqueue_single_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * pkt,struct buf_vector * buf_vec,uint16_t * nr_descs) vhost_enqueue_single_packed() argument 1405 virtio_dev_rx_split(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint32_t count) virtio_dev_rx_split() argument 1462 virtio_dev_rx_sync_batch_check(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint64_t * desc_addrs,uint64_t * lens) virtio_dev_rx_sync_batch_check() argument 1513 virtio_dev_rx_async_batch_check(struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint64_t * desc_addrs,uint64_t * lens,int16_t dma_id,uint16_t vchan_id) virtio_dev_rx_async_batch_check() argument 1566 virtio_dev_rx_batch_packed_copy(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint64_t * desc_addrs,uint64_t * lens) virtio_dev_rx_batch_packed_copy() argument 1616 virtio_dev_rx_sync_batch_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts) virtio_dev_rx_sync_batch_packed() argument 1638 virtio_dev_rx_single_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * pkt) virtio_dev_rx_single_packed() argument 1663 virtio_dev_rx_packed(struct virtio_net * dev,struct vhost_virtqueue * __rte_restrict vq,struct rte_mbuf ** __rte_restrict pkts,uint32_t count) virtio_dev_rx_packed() argument 1700 virtio_dev_vring_translate(struct virtio_net * dev,struct vhost_virtqueue * vq) virtio_dev_vring_translate() argument 1711 virtio_dev_rx(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint32_t count) virtio_dev_rx() argument 1780 async_get_first_inflight_pkt_idx(struct vhost_virtqueue * vq) async_get_first_inflight_pkt_idx() argument 1808 virtio_dev_rx_async_submit_split(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint32_t count,int16_t dma_id,uint16_t vchan_id) virtio_dev_rx_async_submit_split() argument 1914 vhost_enqueue_async_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * pkt,struct buf_vector * buf_vec,uint16_t * nr_descs,uint16_t * nr_buffers) vhost_enqueue_async_packed() argument 1977 virtio_dev_rx_async_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf * pkt,uint16_t * nr_descs,uint16_t * nr_buffers) virtio_dev_rx_async_packed() argument 1999 virtio_dev_rx_async_packed_batch_enqueue(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint64_t * desc_addrs,uint64_t * lens) virtio_dev_rx_async_packed_batch_enqueue() argument 2062 virtio_dev_rx_async_packed_batch(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,int16_t dma_id,uint16_t vchan_id) virtio_dev_rx_async_packed_batch() argument 2080 dma_error_handler_packed(struct vhost_virtqueue * vq,uint16_t slot_idx,uint32_t nr_err,uint32_t * pkt_idx) dma_error_handler_packed() argument 2111 virtio_dev_rx_async_submit_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint32_t count,int16_t dma_id,uint16_t vchan_id) virtio_dev_rx_async_submit_packed() argument 2186 write_back_completed_descs_split(struct vhost_virtqueue * vq,uint16_t n_descs) write_back_completed_descs_split() argument 2218 write_back_completed_descs_packed(struct vhost_virtqueue * vq,uint16_t n_buffers) write_back_completed_descs_packed() argument 2283 vhost_poll_enqueue_completed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint16_t count,int16_t dma_id,uint16_t vchan_id) vhost_poll_enqueue_completed() argument 2357 struct vhost_virtqueue *vq; rte_vhost_poll_enqueue_completed() local 2412 struct vhost_virtqueue *vq; rte_vhost_clear_queue_thread_unsafe() local 2468 struct vhost_virtqueue *vq; rte_vhost_clear_queue() local 2525 virtio_dev_rx_async_submit(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint32_t count,int16_t dma_id,uint16_t vchan_id) virtio_dev_rx_async_submit() argument 2891 desc_to_mbuf(struct virtio_net * dev,struct vhost_virtqueue * vq,struct buf_vector * buf_vec,uint16_t nr_vec,struct rte_mbuf * m,struct rte_mempool * mbuf_pool,bool legacy_ol_flags,uint16_t slot_idx,bool is_async) desc_to_mbuf() argument 3100 virtio_dev_tx_split(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,bool legacy_ol_flags) virtio_dev_tx_split() argument 3196 virtio_dev_tx_split_legacy(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count) virtio_dev_tx_split_legacy() argument 3207 virtio_dev_tx_split_compliant(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count) virtio_dev_tx_split_compliant() argument 3217 vhost_reserve_avail_batch_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint16_t avail_idx,uintptr_t * desc_addrs,uint16_t * ids) vhost_reserve_avail_batch_packed() argument 3289 vhost_async_tx_batch_packed_check(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint16_t avail_idx,uintptr_t * desc_addrs,uint64_t * lens,uint16_t * ids,int16_t dma_id,uint16_t vchan_id) vhost_async_tx_batch_packed_check() argument 3363 virtio_dev_tx_batch_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,bool legacy_ol_flags) virtio_dev_tx_batch_packed() argument 3407 vhost_dequeue_single_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf * pkts,uint16_t * buf_id,uint16_t * desc_count,bool legacy_ol_flags) vhost_dequeue_single_packed() argument 3459 virtio_dev_tx_single_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf * pkts,bool legacy_ol_flags) virtio_dev_tx_single_packed() argument 3488 get_nb_avail_entries_packed(const struct vhost_virtqueue * __rte_restrict vq,uint16_t max_nb_avail_entries) get_nb_avail_entries_packed() argument 3519 virtio_dev_tx_packed(struct virtio_net * dev,struct vhost_virtqueue * __rte_restrict vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** __rte_restrict pkts,uint32_t count,bool legacy_ol_flags) virtio_dev_tx_packed() argument 3573 virtio_dev_tx_packed_legacy(struct virtio_net * dev,struct vhost_virtqueue * __rte_restrict vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** __rte_restrict pkts,uint32_t count) virtio_dev_tx_packed_legacy() argument 3584 virtio_dev_tx_packed_compliant(struct virtio_net * dev,struct vhost_virtqueue * __rte_restrict vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** __rte_restrict pkts,uint32_t count) virtio_dev_tx_packed_compliant() argument 3598 struct vhost_virtqueue *vq; rte_vhost_dequeue_burst() local 3703 async_poll_dequeue_completed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint16_t count,int16_t dma_id,uint16_t vchan_id,bool legacy_ol_flags) async_poll_dequeue_completed() argument 3751 virtio_dev_tx_async_split(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,int16_t dma_id,uint16_t vchan_id,bool legacy_ol_flags) virtio_dev_tx_async_split() argument 3902 virtio_dev_tx_async_split_legacy(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,int16_t dma_id,uint16_t vchan_id) virtio_dev_tx_async_split_legacy() argument 3915 virtio_dev_tx_async_split_compliant(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,int16_t dma_id,uint16_t vchan_id) virtio_dev_tx_async_split_compliant() argument 3926 vhost_async_shadow_dequeue_single_packed(struct vhost_virtqueue * vq,uint16_t buf_id,uint16_t count) vhost_async_shadow_dequeue_single_packed() argument 3945 virtio_dev_tx_async_single_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf * pkts,uint16_t slot_idx,bool legacy_ol_flags) virtio_dev_tx_async_single_packed() argument 4000 virtio_dev_tx_async_packed_batch(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mbuf ** pkts,uint16_t slot_idx,uint16_t dma_id,uint16_t vchan_id) virtio_dev_tx_async_packed_batch() argument 4058 virtio_dev_tx_async_packed(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,uint16_t dma_id,uint16_t vchan_id,bool legacy_ol_flags) virtio_dev_tx_async_packed() argument 4171 virtio_dev_tx_async_packed_legacy(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,uint16_t dma_id,uint16_t vchan_id) virtio_dev_tx_async_packed_legacy() argument 4183 virtio_dev_tx_async_packed_compliant(struct virtio_net * dev,struct vhost_virtqueue * vq,struct rte_mempool * mbuf_pool,struct rte_mbuf ** pkts,uint16_t count,uint16_t dma_id,uint16_t vchan_id) virtio_dev_tx_async_packed_compliant() argument 4200 struct vhost_virtqueue *vq; rte_vhost_async_try_dequeue_burst() local [all...] |