DPDK  16.04.0
Data Fields
vhost_virtqueue Struct Reference

#include <rte_virtio_net.h>

Data Fields

struct vring_desc * desc
struct vring_avail * avail
struct vring_used * used
uint32_t size
uint32_t backend
uint16_t vhost_hlen
volatile uint16_t last_used_idx
volatile uint16_t last_used_idx_res
int callfd
int kickfd
uint64_t log_guest_addr
uint64_t reserved [15]
struct buf_vector buf_vec [BUF_VECTOR_MAX]

Detailed Description

Structure contains variables relevant to RX/TX virtqueues.

Examples:
vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 83 of file rte_virtio_net.h.

Field Documentation

struct vring_desc* desc

Virtqueue descriptor ring.

Examples:
vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 84 of file rte_virtio_net.h.

struct vring_avail* avail

Virtqueue available ring.

Examples:
vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 85 of file rte_virtio_net.h.

struct vring_used* used

Virtqueue used ring.

Examples:
vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 86 of file rte_virtio_net.h.

uint32_t size

Size of descriptor ring.

Examples:
vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 87 of file rte_virtio_net.h.

uint32_t backend

Backend value to determine if device should started/stopped.

Definition at line 88 of file rte_virtio_net.h.

uint16_t vhost_hlen

Vhost header length (varies depending on RX merge buffers.

Examples:
vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 89 of file rte_virtio_net.h.

volatile uint16_t last_used_idx

Last index used on the available ring

Examples:
vhost/main.c, and vhost_xen/main.c.

Definition at line 90 of file rte_virtio_net.h.

volatile uint16_t last_used_idx_res

Used for multiple devices reserving buffers.

Examples:
vhost/main.c, and vhost_xen/main.c.

Definition at line 91 of file rte_virtio_net.h.

int callfd

Used to notify the guest (trigger interrupt).

Examples:
vhost/main.c.

Definition at line 94 of file rte_virtio_net.h.

int kickfd

Currently unused as polling mode is enabled.

Definition at line 95 of file rte_virtio_net.h.

uint64_t log_guest_addr

Physical address of used ring, for logging

Definition at line 97 of file rte_virtio_net.h.

uint64_t reserved[15]

Reserve some spaces for future extension.

Definition at line 98 of file rte_virtio_net.h.

struct buf_vector buf_vec[BUF_VECTOR_MAX]

for scatter RX.

Definition at line 99 of file rte_virtio_net.h.


The documentation for this struct was generated from the following file: